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/multikey-template-v2-external-secret.yaml

20 lines
480 B
YAML
Raw Normal View History

{% raw %}
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: template
spec:
# ...
target:
template:
engineVersion: v2
data:
name: admin
password: "{{ .mysecret }}" # If you are using plain manifests or gitops tools
# password: '{{ printf "{{ .mysecret }}" }}' # If you are using templated tools like helm
data:
- secretKey: mysecret
remoteRef:
key: /credentials
{% endraw %}