{{- if and (eq .Values.mode "deployment") (.Values.configMap.create) -}} apiVersion: v1 kind: ConfigMap metadata: name: {{ include "opentelemetry-collector.fullname" . }} labels: {{- include "opentelemetry-collector.labels" . | nindent 4 }} data: relay: | {{- include "opentelemetry-collector.deploymentConfig" . | nindent 4 -}} {{- end }}