mirror of
https://github.com/external-secrets/external-secrets.git
synced 2024-12-14 11:57:59 +00:00
0bd9ea4dbd
* Adds templates from string Signed-off-by: Gustavo Carvalho <gusfcarvalho@gmail.com>
22 lines
461 B
YAML
22 lines
461 B
YAML
{% raw %}
|
|
apiVersion: external-secrets.io/v1beta1
|
|
kind: ExternalSecret
|
|
metadata:
|
|
name: my-template-example
|
|
spec:
|
|
# ...
|
|
target:
|
|
name: secret-to-be-created
|
|
template:
|
|
engineVersion: v2
|
|
templateFrom:
|
|
- target: Annotations
|
|
literal: "last-sync-for-user/{{ .user }}: {{ .now }}"
|
|
data:
|
|
- secretKey: user
|
|
remoteRef:
|
|
key: /grafana/user
|
|
- secretKey: password
|
|
remoteRef:
|
|
key: /grafana/password
|
|
{% endraw %}
|