Browse Source

fix: update uuids.generator shortname (#3883)

Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
Gergely Brautigam 1 year ago
parent
commit
e2a8750f44

+ 2 - 3
apis/generators/v1alpha1/generator_uuid.go

@@ -19,8 +19,7 @@ import (
 )
 
 // UUIDSpec controls the behavior of the uuid generator.
-type UUIDSpec struct {
-}
+type UUIDSpec struct{}
 
 // Password generates a random password based on the
 // configuration parameters in spec.
@@ -28,7 +27,7 @@ type UUIDSpec struct {
 // +kubebuilder:object:root=true
 // +kubebuilder:storageversion
 // +kubebuilder:subresource:status
-// +kubebuilder:resource:scope=Namespaced,categories={password},shortName=password
+// +kubebuilder:resource:scope=Namespaced,categories={password},shortName=uuids
 type UUID struct {
 	metav1.TypeMeta   `json:",inline"`
 	metav1.ObjectMeta `json:"metadata,omitempty"`

+ 1 - 1
config/crds/bases/generators.external-secrets.io_uuids.yaml

@@ -13,7 +13,7 @@ spec:
     listKind: UUIDList
     plural: uuids
     shortNames:
-    - password
+    - uuids
     singular: uuid
   scope: Namespaced
   versions:

+ 1 - 1
deploy/charts/external-secrets/tests/__snapshot__/crds_test.yaml.snap

@@ -4,7 +4,7 @@ should match snapshot of default values:
     kind: CustomResourceDefinition
     metadata:
       annotations:
-        controller-gen.kubebuilder.io/version: v0.16.1
+        controller-gen.kubebuilder.io/version: v0.16.2
       labels:
         external-secrets.io/component: controller
       name: secretstores.external-secrets.io

+ 1 - 1
deploy/crds/bundle.yaml

@@ -11812,7 +11812,7 @@ spec:
     listKind: UUIDList
     plural: uuids
     shortNames:
-      - password
+      - uuids
     singular: uuid
   scope: Namespaced
   versions: