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>
34 lines
797 B
YAML
34 lines
797 B
YAML
apiVersion: external-secrets.io/v1beta1
|
|
kind: ExternalSecret
|
|
metadata:
|
|
name: example
|
|
spec:
|
|
refreshInterval: 1h
|
|
secretStoreRef:
|
|
name: aws-secretsmanager
|
|
kind: SecretStore
|
|
target:
|
|
name: friends
|
|
creationPolicy: Owner
|
|
data:
|
|
- secretKey: my_name
|
|
remoteRef:
|
|
key: friendslist
|
|
property: name.first # Tom
|
|
- secretKey: first_friend
|
|
remoteRef:
|
|
key: friendslist
|
|
property: friends.1.first # Roger
|
|
|
|
# metadataPolicy to fetch all the labels in JSON format
|
|
- secretKey: tags
|
|
remoteRef:
|
|
metadataPolicy: Fetch
|
|
key: database-credentials
|
|
|
|
# metadataPolicy to fetch a specific label (dev) from the source secret
|
|
- secretKey: developer
|
|
remoteRef:
|
|
metadataPolicy: Fetch
|
|
key: database-credentials
|
|
property: dev
|