diff options
author | 2019-03-24 18:48:49 -0700 | |
---|---|---|
committer | 2019-03-28 18:13:42 +0000 | |
commit | 70fe0a833c686b05a24225653c3c594189789749 (patch) | |
tree | 09f616eb58ba080bf4cedd731c32dd4ddebfcfd2 /vnfs/DAaaS/collection/charts/cadvisor/templates/_helpers.tpl | |
parent | e638d92d1f48e0747fae96cd0606a52525ce9bf8 (diff) |
Helm charts for Cadvisor
Change-Id: Iaba30d9528ebc416339e73cd8d5485457d2ae147
Issue-ID: ONAPARC-438
Signed-off-by: Srivahni <srivahni.chivukula@intel.com>
Diffstat (limited to 'vnfs/DAaaS/collection/charts/cadvisor/templates/_helpers.tpl')
-rw-r--r-- | vnfs/DAaaS/collection/charts/cadvisor/templates/_helpers.tpl | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/vnfs/DAaaS/collection/charts/cadvisor/templates/_helpers.tpl b/vnfs/DAaaS/collection/charts/cadvisor/templates/_helpers.tpl new file mode 100644 index 00000000..ea2a3266 --- /dev/null +++ b/vnfs/DAaaS/collection/charts/cadvisor/templates/_helpers.tpl @@ -0,0 +1,25 @@ +{{/* vim: set filetype=mustache: */}} +{{/* +Expand the name of the chart. +*/}} +{{- define "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). +*/}} +{{- define "fullname" -}} +{{- $name := default .Chart.Name .Values.nameOverride -}} +{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} +{{- end -}} + +{{/* Workaround for https://github.com/helm/helm/issues/3117 */}} +{{- define "rangeskipempty" -}} +{{- range $key, $value := . }} +{{- if $value }} +{{ $key }}: {{ $value }} +{{- end }} +{{- end }} +{{- end }} |