scale-catalog/stable/splunk/6.4.0/templates/_config.tpl

27 lines
613 B
Smarty
Raw Normal View History

2024-07-13 07:59:30 +00:00
{{/* Define the secret */}}
{{- define "splunk.secret" -}}
{{- $splunkSecret := printf "%s-splunk-config" (include "tc.v1.common.lib.chart.names.fullname" .) }}
{{- $argList := list -}}
{{- if .Values.splunk.acceptLicense -}}
{{- $argList = append $argList "--accept-license" -}}
{{- end -}}
{{- with .Values.splunk.extraArgs -}}
{{- range . -}}
{{- $argList = append $argList . -}}
{{- end -}}
{{- end }}
enabled: true
data:
{{- with $argList }}
SPLUNK_START_ARGS: {{ join " " . | quote }}
{{- end }}
{{- with .Values.splunk.password }}
SPLUNK_PASSWORD: {{ . }}
{{- end }}
{{- end -}}