Files
reposilite-charts/templates/_pod.tpl
Markus Pesch 1323f74351
Some checks failed
Generate README / generate-parameters (push) Failing after 40s
Helm / helm-lint (push) Successful in 16s
Helm / helm-unittest (push) Successful in 16s
feat(secret): support annotations and labels for the basic auth secret
2025-09-29 22:53:27 +02:00

20 lines
633 B
Smarty

---
{{/* annotations */}}
{{- define "reposilite.pod.annotations" -}}
{{ include "reposilite.annotations" . }}
{{- if and .Values.prometheus.metrics.enabled (not .Values.prometheus.metrics.secret.existing.enabled) -}}
{{- printf "checksum/secret-%s: %s" (include "reposilite.secrets.prometheusBasicAuth.name" $) (include (print $.Template.BasePath "/secretPrometheusBasicAuth.yaml") . | sha256sum) }}
{{- end -}}
{{- end }}
{{/* labels */}}
{{- define "reposilite.pod.labels" -}}
{{ include "reposilite.labels" . }}
{{- end }}
{{- define "reposilite.pod.selectorLabels" -}}
{{ include "reposilite.selectorLabels" . }}
{{- end }}