Skip to content

Commit

Permalink
Merge pull request GoogleCloudPlatform#3456 from acpana/acpana/fix-so…
Browse files Browse the repository at this point in the history
…me-shortnames

fix:shortnames: worstationcluster
  • Loading branch information
google-oss-prow[bot] authored Jan 8, 2025
2 parents eacb025 + c57b41c commit 416bc83
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion apis/workstations/v1alpha1/cluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ type WorkstationClusterObservedState struct {

// +genclient
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +kubebuilder:resource:categories=gcp
// +kubebuilder:resource:categories=gcp,shortName=gcpworkstationcluster;gcpworkstationclusters
// +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"
Expand Down
2 changes: 1 addition & 1 deletion apis/workstations/v1beta1/cluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ type WorkstationClusterObservedState struct {

// +genclient
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +kubebuilder:resource:categories=gcp
// +kubebuilder:resource:categories=gcp,shortName=gcpworkstationcluster;gcpworkstationclusters
// +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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ spec:
kind: WorkstationCluster
listKind: WorkstationClusterList
plural: workstationclusters
shortNames:
- gcpworkstationcluster
- gcpworkstationclusters
singular: workstationcluster
preserveUnknownFields: false
scope: Namespaced
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</tr>
<tr>
<td>{{product_name_short}} Resource Short Names</td>
<td>workstationcluster</td>
<td>gcpworkstationcluster<br>gcpworkstationclusters<br>workstationcluster</td>
</tr>
<tr>
<td>{{product_name_short}} Service Name</td>
Expand Down
3 changes: 1 addition & 2 deletions tests/apichecks/testdata/exceptions/shortnames.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@
[shortnames] crd=networkconnectivityserviceconnectionpolicies.networkconnectivity.cnrm.cloud.google.com: missing shortnames
[shortnames] crd=privilegedaccessmanagerentitlements.privilegedaccessmanager.cnrm.cloud.google.com: missing shortnames
[shortnames] crd=redisclusters.redis.cnrm.cloud.google.com: missing shortnames
[shortnames] crd=validatingwebhookconfigurationcustomizations.customize.core.cnrm.cloud.google.com: missing shortnames
[shortnames] crd=workstationclusters.workstations.cnrm.cloud.google.com: missing shortnames
[shortnames] crd=validatingwebhookconfigurationcustomizations.customize.core.cnrm.cloud.google.com: missing shortnames

0 comments on commit 416bc83

Please sign in to comment.