Skip to content
This repository was archived by the owner on Nov 29, 2023. It is now read-only.
This repository was archived by the owner on Nov 29, 2023. It is now read-only.

Container: v1beta1 Cluster class is missing the releaseChannel field #13

@edigaryev

Description

@edigaryev

This code:

from google.cloud.container_v1beta1 import ClusterManagerClient


PROJECT_ID = "..."
ZONE = "..."

client = ClusterManagerClient()

cluster = {
    "name": "release-channel-test",
    # https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters#Cluster.Channel
    "releaseChannel": 2,
}

client.create_cluster(project_id=PROJECT_ID, zone=ZONE, cluster=cluster)

Fails with the following exception:

ValueError: Protocol message Cluster has no "releaseChannel" field.

release_channel doesn't work either:

ValueError: Protocol message Cluster has no "release_channel" field.

This field seems to be present in the v1beta1 API (https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters#Cluster), but not in the library.

Library versions:

$ pip list | grep google
google-api-core          1.16.0     
google-auth              1.11.2     
google-cloud-container   0.4.0      
googleapis-common-protos 1.51.0     
grpc-google-iam-v1       0.12.3     

Metadata

Metadata

Assignees

Labels

api: containerIssues related to the googleapis/python-container API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions