1
0
Fork 0
mirror of https://github.com/external-secrets/external-secrets.git synced 2024-12-15 17:51:01 +00:00
external-secrets/docs/snippets/vault-pushsecret.yaml
Gustavo Fernandes de Carvalho 27c5f1f1f2
fix: refresh interval values (#4111)
Signed-off-by: Gustavo <gustavo@externalsecrets.com>
2024-11-18 07:50:16 +01:00

32 lines
694 B
YAML

apiVersion: v1
kind: Secret
metadata:
name: source-secret
namespace: default
stringData:
source-key1: "{\"foo\":\"bar\"}" # Needs to be a JSON
source-key2: bar # Could be a plain string
---
apiVersion: external-secrets.io/v1alpha1
kind: PushSecret
metadata:
name: pushsecret-example
namespace: default
spec:
refreshInterval: 1h
secretStoreRefs:
- name: vault-secretstore
kind: SecretStore
selector:
secret:
name: source-secret
data:
- match:
secretKey: source-key1
remoteRef:
remoteKey: vault/secret1
- match:
secretKey: source-key2
remoteRef:
remoteKey: vault/secret2
property: foo