Files
helm-charts/charts/postgres-cluster/templates/config-map.yaml
Alex Lebens 229851a7dd
Some checks failed
lint-and-test / lint-helm (push) Successful in 8s
lint-and-test / chart-testing (push) Successful in 16s
release-charts-postgres-cluster / release (push) Successful in 17s
renovate / renovate (push) Has been cancelled
feat: change all name labels to template
2026-03-15 12:46:29 -05:00

20 lines
577 B
YAML

{{- if not (empty .Values.cluster.monitoring.customQueries) }}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "cluster.name" $ }}-monitoring
namespace: {{ include "cluster.namespace" $ }}
labels:
app.kubernetes.io/name: {{ include "cluster.name" $ }}-monitoring
cnpg.io/reload: ""
{{- include "cluster.labels" $ | nindent 4 }}
data:
custom-queries: |
{{- range .Values.cluster.monitoring.customQueries }}
{{ .name }}:
query: {{ .query | quote }}
metrics:
{{- .metrics | toYaml | nindent 8 }}
{{- end }}
{{- end }}