This repository was archived by the owner on Nov 29, 2023. It is now read-only.
Description 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
Reactions are currently unavailable
This code:
Fails with the following exception:
release_channeldoesn't work either: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: