multiline-template-v2-external-secret.yaml 692 B

1234567891011121314151617181920212223242526272829303132
  1. {% raw %}
  2. apiVersion: external-secrets.io/v1alpha1
  3. kind: ExternalSecret
  4. metadata:
  5. name: template
  6. spec:
  7. # ...
  8. target:
  9. name: secret-to-be-created
  10. # this is how the Kind=Secret will look like
  11. template:
  12. type: kubernetes.io/tls
  13. engineVersion: v2
  14. data:
  15. # multiline string
  16. config: |
  17. datasources:
  18. - name: Graphite
  19. type: graphite
  20. access: proxy
  21. url: http://localhost:8080
  22. password: "{{ .password }}"
  23. user: "{{ .user }}"
  24. data:
  25. - secretKey: user
  26. remoteRef:
  27. key: /grafana/user
  28. - secretKey: password
  29. remoteRef:
  30. key: /grafana/password
  31. {% endraw %}