Co-authored-by: Mike Terhar <mike@terhar.com> Co-authored-by: Devin Buhl <onedr0p@users.noreply.github.com>
19 lines
430 B
YAML
19 lines
430 B
YAML
{{/*
|
|
The open telemetry config secret to be included.
|
|
*/}}
|
|
{{- if and .Values.configFile (not .Values.configFileSecret) }}
|
|
---
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: {{ include "common.names.fullname" . }}-otelconfig
|
|
labels:
|
|
configsecret: otelcollector
|
|
{{- include "common.labels" $ | nindent 4 }}
|
|
stringData:
|
|
{{- with .Values.configFile }}
|
|
otelConfigFile: |-
|
|
{{- . | nindent 4}}
|
|
{{- end }}
|
|
{{- end -}}
|