Skip to content

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 authored Feb 24, 2022
1 parent bf06295 commit 8359b5e
Showing 1 changed file with 7 additions and 0 deletions.
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 8359b5e

Please sign in to comment.