Files
prometheus-postgres-exporter/templates/_services.tpl
Markus Pesch 3c8a92fb04
All checks were successful
Helm / helm-lint (push) Successful in 12s
Helm / helm-unittest (push) Successful in 17s
refac(templates): remove parent dir 'prometheus-postgres-exporter'
2025-07-23 21:24:27 +02:00

29 lines
903 B
Smarty

{{/* vim: set filetype=mustache: */}}
{{/* annotations */}}
{{- define "prometheus-postgres-exporter.services.http.annotations" -}}
{{ include "prometheus-postgres-exporter.annotations" . }}
{{- if .Values.services.http.annotations }}
{{ toYaml .Values.services.http.annotations }}
{{- end }}
{{- end }}
{{/* labels */}}
{{- define "prometheus-postgres-exporter.services.http.labels" -}}
{{ include "prometheus-postgres-exporter.labels" . }}
{{/* Add label to select the correct service via `selector.matchLabels` of the serviceMonitor resource. */}}
app.kubernetes.io/service-name: http
{{- if .Values.services.http.labels }}
{{ toYaml .Values.services.http.labels }}
{{- end }}
{{- end }}
{{/* names */}}
{{- define "prometheus-postgres-exporter.services.http.name" -}}
{{- if .Values.services.http.enabled -}}
{{ include "prometheus-postgres-exporter.fullname" . }}-http
{{- end -}}
{{- end -}}