1
0
Fork 0
mirror of https://github.com/external-secrets/external-secrets.git synced 2024-12-14 11:57:59 +00:00
external-secrets/docs/snippets/vault-pushsecret.yaml
Maxence Boutet 57967813d1
fix(docs): Fix indentation in vault-pushsecret.yaml (#3156)
Signed-off-by: Maxence Boutet <52334444+mboutet@users.noreply.github.com>
2024-02-17 07:06:02 -03:00

32 lines
695 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: 10s
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