From 70fe0a833c686b05a24225653c3c594189789749 Mon Sep 17 00:00:00 2001 From: Srivahni Date: Sun, 24 Mar 2019 18:48:49 -0700 Subject: Helm charts for Cadvisor Change-Id: Iaba30d9528ebc416339e73cd8d5485457d2ae147 Issue-ID: ONAPARC-438 Signed-off-by: Srivahni --- .../charts/cadvisor/templates/_helpers.tpl | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 vnfs/DAaaS/collection/charts/cadvisor/templates/_helpers.tpl (limited to 'vnfs/DAaaS/collection/charts/cadvisor/templates/_helpers.tpl') 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 }} -- cgit 1.2.3-korg