Files
deprecated-helm-charts/stable/node-problem-detector/templates/_helpers.tpl
T
Max Williams eb64333e57 Adding node-problem-detector stable chart (#7795)
* Adding node-problem-detector stable chart

Signed-off-by: Max Williams <max.williams@deliveryhero.com>

* adding .helmignore file

Signed-off-by: Max Williams <max.williams@deliveryhero.com>

* adding serviceaccount name helper and option

Signed-off-by: Max Williams <max.williams@deliveryhero.com>

* adding affinity option


updating helpers and labels....so many labels

Signed-off-by: Max Williams <max.williams@deliveryhero.com>

* add affinity option to readme

Signed-off-by: Max Williams <max.williams@deliveryhero.com>

* Fix readme and notes

Signed-off-by: Max Williams <max.williams@deliveryhero.com>

* Fixing references to serviceAccountName

Signed-off-by: Max Williams <max.williams@deliveryhero.com>

* Changing daemonset apiVersion to apps/v1

Signed-off-by: Max Williams <max.williams@deliveryhero.com>

* Fix note after labels have changed

Signed-off-by: Max Williams <max.williams@deliveryhero.com>

* Updating values.yaml to remove resources and change tollerations to list

Signed-off-by: Max Williams <max.williams@deliveryhero.com>

* Changing indentation of all list types to be like `helm create` example.

Signed-off-by: Max Williams <max.williams@deliveryhero.com>

* Updating readme with all options from values.yaml in alphabetical order

Signed-off-by: Max Williams <max.williams@deliveryhero.com>

* Changing API version requirement in readme


removing basic labels from helpers file

Signed-off-by: Max Williams <max.williams@deliveryhero.com>
2018-11-01 14:52:38 -07:00

43 lines
1.4 KiB
Smarty

{{/* vim: set filetype=mustache: */}}
{{/*
Expand the name of the chart.
*/}}
{{- define "node-problem-detector.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If release name contains chart name it will be used as a full name.
*/}}
{{- define "node-problem-detector.fullname" -}}
{{- if .Values.fullnameOverride -}}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- if contains $name .Release.Name -}}
{{- .Release.Name | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "node-problem-detector.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{/* Create the name of the service account to use */}}
{{- define "node-problem-detector.serviceAccountName" -}}
{{- if .Values.serviceAccount.create -}}
{{ default (include "node-problem-detector.fullname" .) .Values.serviceAccount.name }}
{{- else -}}
{{ default "default" .Values.serviceAccount.name }}
{{- end -}}
{{- end -}}