mirror of
https://github.com/external-secrets/external-secrets.git
synced 2024-12-15 17:51:01 +00:00
27c5f1f1f2
Signed-off-by: Gustavo <gustavo@externalsecrets.com>
32 lines
694 B
YAML
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
|