mirror of
https://github.com/external-secrets/external-secrets.git
synced 2024-12-14 11:57:59 +00:00
57967813d1
Signed-off-by: Maxence Boutet <52334444+mboutet@users.noreply.github.com>
32 lines
695 B
YAML
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
|