mirror of
https://github.com/external-secrets/external-secrets.git
synced 2024-12-14 11:57:59 +00:00
4f7683a239
Signed-off-by: Sebastián Gómez <sebastiangomezcorrea@gmail.com>
34 lines
797 B
YAML
34 lines
797 B
YAML
apiVersion: external-secrets.io/v1beta1
|
|
kind: ExternalSecret
|
|
metadata:
|
|
name: example
|
|
spec:
|
|
refreshInterval: 1m
|
|
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
|