mirror of
https://github.com/external-secrets/external-secrets.git
synced 2024-12-14 11:57:59 +00:00
23 lines
461 B
YAML
23 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 %}
|