Files
charts/bitnami/node-exporter/templates/_helpers.tpl
Pablo Galego 30e694657e [bitnami/*] Mark PodSecurityPolicy resources as deprecated (#7950)
* [bitnami/kube-prometheus] Mark PSP as deprecated

* [bitnami/kube-state-metrics] Mark PSP as deprecated

* [bitnami/metallb] Mark PSP as deprecated

* [bitnami/mongodb] Mark PSP as deprecated

* [bitnami/nginx-ingress-controller] Mark PSP as deprecated

* [bitnami/node-exporter] Mark PSP as deprecated

* [bitnami/metallb] Update README after sync with master
2021-10-28 09:30:22 +02:00

47 lines
1.3 KiB
Smarty

{{/* vim: set filetype=mustache: */}}
{{/*
Return the proper Node Exporter image name
*/}}
{{- define "node-exporter.image" -}}
{{ include "common.images.image" (dict "imageRoot" .Values.image "global" .Values.global) }}
{{- end -}}
{{/*
Return the proper Docker Image Registry Secret Names for Node Exporter image
*/}}
{{- define "node-exporter.imagePullSecrets" -}}
{{- include "common.images.pullSecrets" (dict "images" (list .Values.image) "global" .Values.global) -}}
{{- end -}}
{{/*
Create the name of the service account to use
*/}}
{{- define "node-exporter.serviceAccountName" -}}
{{- if .Values.serviceAccount.create -}}
{{ default (include "common.names.fullname" .) .Values.serviceAccount.name }}
{{- else -}}
{{ default "default" .Values.serviceAccount.name }}
{{- end -}}
{{- end -}}
{{/*
Check if there are rolling tags in the images
*/}}
{{- define "node-exporter.checkRollingTags" -}}
{{- include "common.warnings.rollingTag" .Values.image }}
{{- end -}}
{{/*
Compile all warnings into a single message, and call fail.
*/}}
{{- define "node-exporter.validateValues" -}}
{{- $messages := list -}}
{{- $messages := without $messages "" -}}
{{- $message := join "\n" $messages -}}
{{- if $message -}}
{{- printf "\nVALUES VALIDATION:\n%s" $message | fail -}}
{{- end -}}
{{- end -}}