Convert helm-charts-observability to regular directory
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
{{- if and .Values.serviceMonitor.enabled .Values.serviceMonitor.basicAuth.enabled (not .Values.serviceMonitor.basicAuth.existingSecret) }}
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: {{ template "opensearch.uname" . }}-service-monitor-credentials
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
{{- include "opensearch.labels" . | nindent 4 }}
|
||||
{{- with .Values.serviceMonitor.labels }}
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
data:
|
||||
username: {{ .Values.serviceMonitor.basicAuth.username | b64enc | quote }}
|
||||
password: {{ .Values.serviceMonitor.basicAuth.password | b64enc | quote }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user