k8s-manifests/rds/base/charts/jaeger/templates/elasticsearch-secret.yaml

13 lines
445 B
YAML
Raw Normal View History

2023-05-03 09:19:45 +00:00
{{ if and (eq .Values.storage.type "elasticsearch") .Values.storage.elasticsearch.usePassword (not .Values.storage.elasticsearch.existingSecret) -}}
apiVersion: v1
kind: Secret
metadata:
name: {{ include "jaeger.fullname" . }}-elasticsearch
namespace: {{ .Release.Namespace }}
labels:
{{- include "jaeger.labels" . | nindent 4 }}
type: Opaque
data:
password: {{ .Values.storage.elasticsearch.password | b64enc | quote }}
{{- end }}