blob: 7705174153f8b0e3e001697209a09c5b530a1a0c [file] [log] [blame]
{{/*
# Copyright 2022-present Open Networking Foundation
# SPDX-License-Identifier: Apache-2.0
*/}}
{{- if .Values.config.metrics.deploy }}
{{- if not .Values.config.useExistingConfigMap -}}
{{- $metricscfg := index .Values.config.metrics.cfgFiles "metricscfg.conf" }}
{{- end }}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: metrics
labels:
{{ tuple "metrics" . | include "5g-control-plane.metadata_labels" | indent 4 }}
data:
metrics-run.sh: |
{{ tuple "bin/_metrics-run.sh.tpl" . | include "5g-control-plane.template" | indent 4 }}
{{- if not .Values.config.useExistingConfigMap -}}
{{- range $key, $value := .Values.config.metrics.cfgFiles }}
{{ $key }}: |-
{{ toYaml $value | indent 4 }}
{{- end }}
{{- end }}
{{- end }}