You've already forked reposilite-charts
Some checks failed
Generate README / generate-parameters (push) Failing after 15s
Helm / helm-lint (push) Successful in 15s
Helm / helm-unittest (push) Successful in 7s
Markdown linter / markdown-lint (push) Successful in 8s
Release / publish-chart (push) Successful in 8s
Markdown linter / markdown-link-checker (push) Successful in 43s
The following patch extends the helm chart of additional init containers for each plugin.
35 lines
1.2 KiB
Smarty
35 lines
1.2 KiB
Smarty
{{/* vim: set filetype=mustache: */}}
|
|
|
|
{{/* annotations */}}
|
|
|
|
{{- define "reposilite.serviceMonitor.annotations" -}}
|
|
{{ include "reposilite.annotations" . }}
|
|
{{- if .Values.prometheus.metrics.serviceMonitor.annotations }}
|
|
{{ toYaml .Values.prometheus.metrics.serviceMonitor.annotations }}
|
|
{{- end }}
|
|
{{- end }}
|
|
|
|
{{/* enabled */}}
|
|
|
|
{{- define "reposilite.serviceMonitor.enabled" -}}
|
|
{{- if and .Values.prometheus.metrics.enabled (not .Values.prometheus.metrics.podMonitor.enabled) .Values.prometheus.metrics.serviceMonitor.enabled .Values.service.enabled -}}
|
|
true
|
|
{{- else -}}
|
|
false
|
|
{{- end -}}
|
|
{{- end }}
|
|
|
|
{{/* labels */}}
|
|
|
|
{{- define "reposilite.serviceMonitor.labels" -}}
|
|
{{ include "reposilite.labels" . }}
|
|
{{- if .Values.prometheus.metrics.serviceMonitor.labels }}
|
|
{{ toYaml .Values.prometheus.metrics.serviceMonitor.labels }}
|
|
{{- end }}
|
|
{{- end }}
|
|
|
|
{{- define "reposilite.serviceMonitor.selectorLabels" -}}
|
|
{{ include "reposilite.selectorLabels" . }}
|
|
{{/* Add label to select the correct service via `selector.matchLabels` of the serviceMonitor resource. */}}
|
|
app.kubernetes.io/service-name: {{ required "The scheme of the serviceMonitor is not defined!" .Values.service.scheme }}
|
|
{{- end }} |