Co-authored-by: Mike Terhar <mike@terhar.com> Co-authored-by: Devin Buhl <onedr0p@users.noreply.github.com>
29 lines
906 B
YAML
29 lines
906 B
YAML
{{/* Make sure all variables are set properly */}}
|
|
{{- include "common.values.setup" . }}
|
|
|
|
{{/* Append the hardcoded settings */}}
|
|
{{- define "otel-collector.harcodedValues" -}}
|
|
{{/* merge config file path argument which is hard coded*/}}
|
|
args:
|
|
- "--config=/conf/otel-collector-config.yaml"
|
|
|
|
{{/* Append the config secret volume to the volumes */}}
|
|
persistence:
|
|
otel-config-file:
|
|
enabled: true
|
|
type: "custom"
|
|
mountPath: "/conf/otel-collector-config.yaml"
|
|
subPath: "otelConfigFile"
|
|
volumeSpec:
|
|
secret:
|
|
{{- if .Values.configFileSecret }}
|
|
secretName: "{{ .Values.configSecretName }}"
|
|
{{- else }}
|
|
secretName: "{{ include "common.names.fullname" . }}-otelconfig"
|
|
{{- end }}
|
|
{{- end -}}
|
|
{{- $_ := mergeOverwrite .Values (include "otel-collector.harcodedValues" . | fromYaml) -}}
|
|
|
|
|
|
{{ include "common.all" . }}
|