Browse Source

Merge pull request #1027 from external-secrets/feat/optional-target

Making spec.target Optional
paul-the-alien[bot] 4 years ago
parent
commit
1286937feb

+ 2 - 2
apis/externalsecrets/v1beta1/externalsecret_types.go

@@ -224,8 +224,8 @@ type FindName struct {
 // ExternalSecretSpec defines the desired state of ExternalSecret.
 type ExternalSecretSpec struct {
 	SecretStoreRef SecretStoreRef `json:"secretStoreRef"`
-
-	Target ExternalSecretTarget `json:"target"`
+	// +optional
+	Target ExternalSecretTarget `json:"target,omitempty"`
 
 	// RefreshInterval is the amount of time before the values are read again from the SecretStore provider
 	// Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h"

+ 0 - 1
config/crds/bases/external-secrets.io_clusterexternalsecrets.yaml

@@ -263,7 +263,6 @@ spec:
                     type: object
                 required:
                 - secretStoreRef
-                - target
                 type: object
               namespaceSelector:
                 description: The labels to select by to find the Namespaces to create

+ 0 - 1
config/crds/bases/external-secrets.io_externalsecrets.yaml

@@ -506,7 +506,6 @@ spec:
                 type: object
             required:
             - secretStoreRef
-            - target
             type: object
           status:
             properties:

+ 0 - 2
deploy/crds/bundle.yaml

@@ -232,7 +232,6 @@ spec:
                       type: object
                   required:
                     - secretStoreRef
-                    - target
                   type: object
                 namespaceSelector:
                   description: The labels to select by to find the Namespaces to create the ExternalSecrets in.
@@ -2829,7 +2828,6 @@ spec:
                   type: object
               required:
                 - secretStoreRef
-                - target
               type: object
             status:
               properties: