elasticsearch-secret.yaml 588 B

12345678910111213141516
  1. {{ if and (eq .Values.storage.type "elasticsearch") .Values.storage.elasticsearch.usePassword (not .Values.storage.elasticsearch.existingSecret) -}}
  2. apiVersion: v1
  3. kind: Secret
  4. metadata:
  5. name: {{ include "jaeger.fullname" . }}-elasticsearch
  6. labels:
  7. {{- include "jaeger.labels" . | nindent 4 }}
  8. annotations:
  9. "helm.sh/hook": pre-install,pre-upgrade
  10. "helm.sh/hook-weight": "-1"
  11. "helm.sh/hook-delete-policy": before-hook-creation
  12. "helm.sh/resource-policy": keep
  13. type: Opaque
  14. data:
  15. password: {{ .Values.storage.elasticsearch.password | b64enc | quote }}
  16. {{- end }}