From c881b9620166f4f727c70931bf421f19a13d83b2 Mon Sep 17 00:00:00 2001 From: Alex Pana <8968914+acpana@users.noreply.github.com> Date: Wed, 18 Dec 2024 01:09:43 +0000 Subject: [PATCH] fix: add shortnames Signed-off-by: Alex Pana <8968914+acpana@users.noreply.github.com> --- apis/bigqueryanalyticshub/v1alpha1/listing_types.go | 2 +- apis/bigqueryanalyticshub/v1beta1/listing_types.go | 2 +- ...hublistings.bigqueryanalyticshub.cnrm.cloud.google.com.yaml | 3 +++ .../bigqueryanalyticshub/bigqueryanalyticshublisting.md | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/apis/bigqueryanalyticshub/v1alpha1/listing_types.go b/apis/bigqueryanalyticshub/v1alpha1/listing_types.go index cd5f72c9259..58214fd0f05 100644 --- a/apis/bigqueryanalyticshub/v1alpha1/listing_types.go +++ b/apis/bigqueryanalyticshub/v1alpha1/listing_types.go @@ -174,7 +174,7 @@ type BigQueryAnalyticsHubListingObservedState struct { // +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// +kubebuilder:resource:categories=gcp +// +kubebuilder:resource:categories=gcp,shortName=gcpbigqueryanalyticshublisting;gcpbigqueryanalyticshublistings // +kubebuilder:subresource:status // +kubebuilder:metadata:labels="cnrm.cloud.google.com/managed-by-kcc=true";"cnrm.cloud.google.com/system=true" // +kubebuilder:printcolumn:name="Age",JSONPath=".metadata.creationTimestamp",type="date" diff --git a/apis/bigqueryanalyticshub/v1beta1/listing_types.go b/apis/bigqueryanalyticshub/v1beta1/listing_types.go index 0fe42dff7ee..afa023ca8d0 100644 --- a/apis/bigqueryanalyticshub/v1beta1/listing_types.go +++ b/apis/bigqueryanalyticshub/v1beta1/listing_types.go @@ -172,7 +172,7 @@ type BigQueryAnalyticsHubListingObservedState struct { // +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// +kubebuilder:resource:categories=gcp +// +kubebuilder:resource:categories=gcp,shortName=gcpbigqueryanalyticshublisting;gcpbigqueryanalyticshublistings // +kubebuilder:subresource:status // +kubebuilder:metadata:labels="cnrm.cloud.google.com/managed-by-kcc=true";"cnrm.cloud.google.com/system=true" // +kubebuilder:printcolumn:name="Age",JSONPath=".metadata.creationTimestamp",type="date" diff --git a/config/crds/resources/apiextensions.k8s.io_v1_customresourcedefinition_bigqueryanalyticshublistings.bigqueryanalyticshub.cnrm.cloud.google.com.yaml b/config/crds/resources/apiextensions.k8s.io_v1_customresourcedefinition_bigqueryanalyticshublistings.bigqueryanalyticshub.cnrm.cloud.google.com.yaml index ade5d3c3416..2073e2f06c8 100644 --- a/config/crds/resources/apiextensions.k8s.io_v1_customresourcedefinition_bigqueryanalyticshublistings.bigqueryanalyticshub.cnrm.cloud.google.com.yaml +++ b/config/crds/resources/apiextensions.k8s.io_v1_customresourcedefinition_bigqueryanalyticshublistings.bigqueryanalyticshub.cnrm.cloud.google.com.yaml @@ -16,6 +16,9 @@ spec: kind: BigQueryAnalyticsHubListing listKind: BigQueryAnalyticsHubListingList plural: bigqueryanalyticshublistings + shortNames: + - gcpbigqueryanalyticshublisting + - gcpbigqueryanalyticshublistings singular: bigqueryanalyticshublisting preserveUnknownFields: false scope: Namespaced diff --git a/scripts/generate-google3-docs/resource-reference/generated/resource-docs/bigqueryanalyticshub/bigqueryanalyticshublisting.md b/scripts/generate-google3-docs/resource-reference/generated/resource-docs/bigqueryanalyticshub/bigqueryanalyticshublisting.md index 820701542b1..b2199eafac9 100644 --- a/scripts/generate-google3-docs/resource-reference/generated/resource-docs/bigqueryanalyticshub/bigqueryanalyticshublisting.md +++ b/scripts/generate-google3-docs/resource-reference/generated/resource-docs/bigqueryanalyticshub/bigqueryanalyticshublisting.md @@ -32,7 +32,7 @@