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

Commit 5228f98

Browse files
feat: added support for k8s_version field (#117)
* feat: added support for k8s_version field * docs: k8s_version field is not part of resource_options struct Clients now generate the V1 or V1beta1 CRD based on Kubernetes server version. PiperOrigin-RevId: 430569173 Source-Link: googleapis/googleapis@3c17193 Source-Link: https://github.com/googleapis/googleapis-gen/commit/ae784406e300bf1c56d50111338b9272fb0473b5 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYWU3ODQ0MDZlMzAwYmYxYzU2ZDUwMTExMzM4YjkyNzJmYjA0NzNiNSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <[email protected]>
1 parent 65b2edb commit 5228f98

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

google/cloud/gkehub_v1beta1/types/membership.py

+7
Original file line numberDiff line numberDiff line change
@@ -294,10 +294,16 @@ class ResourceOptions(proto.Message):
294294
``apiextensions/v1`` for CustomResourceDefinition resources.
295295
This option should be set for clusters with Kubernetes
296296
apiserver versions <1.16.
297+
k8s_version (str):
298+
Optional. Major version of the Kubernetes cluster. This is
299+
only used to determine which version to use for the
300+
CustomResourceDefinition resources,
301+
``apiextensions/v1beta1`` or\ ``apiextensions/v1``.
297302
"""
298303

299304
connect_version = proto.Field(proto.STRING, number=1,)
300305
v1beta1_crd = proto.Field(proto.BOOL, number=2,)
306+
k8s_version = proto.Field(proto.STRING, number=3,)
301307

302308

303309
class ResourceManifest(proto.Message):
@@ -346,6 +352,7 @@ class OnPremCluster(proto.Message):
346352
resource_link (str):
347353
Immutable. Self-link of the GCP resource for
348354
the GKE On-Prem cluster. For example:
355+
349356
//gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
350357
//gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/bareMetalClusters/my-cluster
351358
cluster_missing (bool):

0 commit comments

Comments
 (0)