Bläddra i källkod

chore(docs): update refresh interval format (#5447)

Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>

On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com>

Co-authored-by: Idan Adar <iadar@il.ibm.com>
Gergely Brautigam 6 månader sedan
förälder
incheckning
44f1addbe2

+ 1 - 1
docs/guides/generator.md

@@ -14,7 +14,7 @@ kind: ExternalSecret
 metadata:
   name: "ecr-token"
 spec:
-  refreshInterval: "30m"
+  refreshInterval: "30m0s"
   target:
     name: ecr-token
   dataFrom:

+ 1 - 1
docs/snippets/cloak-external-secret.yaml

@@ -4,7 +4,7 @@ kind: ExternalSecret
 metadata:
   name: cloak-example
 spec:
-  refreshInterval: "15m"
+  refreshInterval: "15m0s"
   secretStoreRef:
     name: cloak-backend
     kind: SecretStore

+ 1 - 1
docs/snippets/full-cluster-external-secret.yaml

@@ -39,7 +39,7 @@ spec:
     # - OnChange: Only synchronizes when the ExternalSecret's metadata or specification changes
     refreshPolicy: Periodic
 
-    refreshInterval: "1h"
+    refreshInterval: "1h0m0s"
     target:
       name: my-secret
       creationPolicy: 'Merge'

+ 1 - 1
docs/snippets/full-external-secret.yaml

@@ -27,7 +27,7 @@ spec:
   # RefreshInterval is the amount of time before the values reading again from the SecretStore provider
   # Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h" (from time.ParseDuration)
   # May be set to zero to fetch and create it once
-  refreshInterval: "1h"
+  refreshInterval: "1h0m0s"
 
   # the target describes the secret that shall be created
   # there can only be one target per ExternalSecret

+ 1 - 1
docs/snippets/generator-cluster-example.yaml

@@ -3,7 +3,7 @@ kind: ExternalSecret
 metadata:
   name: "cluster-secret"
 spec:
-  refreshInterval: "1h"
+  refreshInterval: "1h0m0s"
   target:
     name: cluster-secret
   dataFrom:

+ 1 - 1
docs/snippets/generator-ecr-example.yaml

@@ -4,7 +4,7 @@ kind: ExternalSecret
 metadata:
   name: "ecr-secret"
 spec:
-  refreshInterval: "1h"
+  refreshInterval: "1h0m0s"
   target:
     name: ecr-secret
     template:

+ 1 - 1
docs/snippets/generator-fake-example.yaml

@@ -3,7 +3,7 @@ kind: ExternalSecret
 metadata:
   name: "fake"
 spec:
-  refreshInterval: "30m"
+  refreshInterval: "30m0s"
   target:
     name: fake
   dataFrom:

+ 1 - 1
docs/snippets/generator-gcr-example.yaml

@@ -3,7 +3,7 @@ kind: ExternalSecret
 metadata:
   name: "gcr-token"
 spec:
-  refreshInterval: "30m"
+  refreshInterval: "30m0s"
   target:
     name: gcr-token
   dataFrom:

+ 1 - 1
docs/snippets/generator-github-example-basicauth.yaml

@@ -10,7 +10,7 @@ spec:
         apiVersion: generators.external-secrets.io/v1alpha1
         kind: GithubAccessToken
         name: github-auth-token
-  refreshInterval: "15m" # Be sure to set this value lower than 60m since that is the expiration time from github
+  refreshInterval: "15m0s" # Be sure to set this value lower than 60m since that is the expiration time from github
   target:
     template:
       metadata:

+ 1 - 1
docs/snippets/generator-github-example.yaml

@@ -4,7 +4,7 @@ kind: ExternalSecret
 metadata:
   name: github-auth-token
 spec:
-  refreshInterval: "30m" # Be sure to set this value lower than 60m since that is the expiration time from github
+  refreshInterval: "30m0s" # Be sure to set this value lower than 60m since that is the expiration time from github
   target:
     name: github-auth-token # Name for the secret to be created on the cluster
   dataFrom:

+ 1 - 1
docs/snippets/generator-password-example.yaml

@@ -3,7 +3,7 @@ kind: ExternalSecret
 metadata:
   name: "password"
 spec:
-  refreshInterval: "30m"
+  refreshInterval: "30m0s"
   target:
     name: password-secret
   dataFrom:

+ 1 - 1
docs/snippets/generator-sshkey-example.yaml

@@ -3,7 +3,7 @@ kind: ExternalSecret
 metadata:
   name: example-ssh-key
 spec:
-  refreshInterval: "30m"
+  refreshInterval: "30m0s"
   target:
     name: ssh-key-secret
   dataFrom:

+ 1 - 1
docs/snippets/generator-sshkey-rsa-example.yaml

@@ -3,7 +3,7 @@ kind: ExternalSecret
 metadata:
   name: example-rsa-key
 spec:
-  refreshInterval: "30m"
+  refreshInterval: "30m0s"
   target:
     name: ssh-rsa-secret
   dataFrom:

+ 1 - 1
docs/snippets/generator-sts-example.yaml

@@ -3,7 +3,7 @@ kind: ExternalSecret
 metadata:
   name: "sts-secret"
 spec:
-  refreshInterval: "1h"
+  refreshInterval: "1h0m0s"
   target:
     name: sts-secret
   dataFrom:

+ 1 - 1
docs/snippets/generator-uuid-example.yaml

@@ -3,7 +3,7 @@ kind: ExternalSecret
 metadata:
   name: "uuid"
 spec:
-  refreshInterval: "30m"
+  refreshInterval: "30m0s"
   target:
     name: uuid-secret
   dataFrom:

+ 1 - 1
docs/snippets/generator-vault-example.yaml

@@ -3,7 +3,7 @@ kind: ExternalSecret
 metadata:
   name: "pki-example-com"
 spec:
-  refreshInterval: "768h"
+  refreshInterval: "768h0m0s"
   target:
     name: pki-example-com
   dataFrom:

+ 1 - 1
docs/snippets/generator-webhook-example.yaml

@@ -3,7 +3,7 @@ kind: ExternalSecret
 metadata:
   name: "webhook"
 spec:
-  refreshInterval: "30m"
+  refreshInterval: "30m0s"
   target:
     name: webhook-secret
   dataFrom:

+ 1 - 1
docs/snippets/keepersecurity-push-secret.yaml

@@ -6,7 +6,7 @@ spec:
   secretStoreRefs:
     - name: keeper
       kind: SecretStore
-  refreshInterval: "1h"
+  refreshInterval: "1h0m0s"
   deletionPolicy: Delete
   selector:
     secret:

+ 1 - 1
docs/snippets/passbolt-external-secret-example.yaml

@@ -3,7 +3,7 @@ kind: ExternalSecret
 metadata:
   name: passbolt-example-simple
 spec:
-  refreshInterval: "1h"
+  refreshInterval: "1h0m0s"
   secretStoreRef:
     name: passbolt
     kind: SecretStore

+ 1 - 1
docs/snippets/passbolt-external-secret-findbyname.yaml

@@ -3,7 +3,7 @@ kind: ExternalSecret
 metadata:
   name: passbolt-example
 spec:
-  refreshInterval: "1h"
+  refreshInterval: "1h0m0s"
   secretStoreRef:
     name: passbolt
     kind: SecretStore