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

Commit

Permalink
feat: added support for k8s_version field (#117)
Browse files Browse the repository at this point in the history
* 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: googleapis/googleapis-gen@ae78440
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 <partheniou@google.com>
  • Loading branch information
3 people committed Feb 24, 2022
1 parent 65b2edb commit 5228f98
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions google/cloud/gkehub_v1beta1/types/membership.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,10 +294,16 @@ class ResourceOptions(proto.Message):
``apiextensions/v1`` for CustomResourceDefinition resources.
This option should be set for clusters with Kubernetes
apiserver versions <1.16.
k8s_version (str):
Optional. Major version of the Kubernetes cluster. This is
only used to determine which version to use for the
CustomResourceDefinition resources,
``apiextensions/v1beta1`` or\ ``apiextensions/v1``.
"""

connect_version = proto.Field(proto.STRING, number=1,)
v1beta1_crd = proto.Field(proto.BOOL, number=2,)
k8s_version = proto.Field(proto.STRING, number=3,)


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

0 comments on commit 5228f98

Please sign in to comment.