Browse Source

fix: add push secret refreshInterval defaulting (#4404)

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

+ 1 - 0
apis/externalsecrets/v1alpha1/pushsecret_types.go

@@ -73,6 +73,7 @@ const (
 // PushSecretSpec configures the behavior of the PushSecret.
 type PushSecretSpec struct {
 	// The Interval to which External Secrets will try to push a secret definition
+	// +kubebuilder:default="1h"
 	RefreshInterval *metav1.Duration `json:"refreshInterval,omitempty"`
 
 	SecretStoreRefs []PushSecretStoreRef `json:"secretStoreRefs"`

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

@@ -100,6 +100,7 @@ spec:
                 - None
                 type: string
               refreshInterval:
+                default: 1h
                 description: The Interval to which External Secrets will try to push
                   a secret definition
                 type: string

+ 1 - 0
deploy/crds/bundle.yaml

@@ -7526,6 +7526,7 @@ spec:
                     - None
                   type: string
                 refreshInterval:
+                  default: 1h
                   description: The Interval to which External Secrets will try to push a secret definition
                   type: string
                 secretStoreRefs: