diff options
author | Krzysztof Opasiak <k.opasiak@samsung.com> | 2020-01-24 22:45:16 +0100 |
---|---|---|
committer | Krzysztof Opasiak <k.opasiak@samsung.com> | 2020-02-01 00:10:00 +0100 |
commit | 03b1009c7b791ea3252237f79367ff0501460f16 (patch) | |
tree | aa4769e4225e3ab634c53c462f0bc4fb280cd220 /kubernetes/common/music/charts/zookeeper/templates/_helpers.tpl | |
parent | d9a7efecd6b1960048911a2aadee3c6b8ec4ecc8 (diff) |
Remove additional _helpers files
Helm by default creates some useful templates in _helpers.tpl
file. This is fine for stand alone charts but when they become
part of ONAP those helpers are no longer needed as our common
components already provides all required functions
Issue-ID: OOM-2278
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Change-Id: I659e4b45b031e87cc87f7bbbb22bf9e23cd74e61
Diffstat (limited to 'kubernetes/common/music/charts/zookeeper/templates/_helpers.tpl')
-rw-r--r-- | kubernetes/common/music/charts/zookeeper/templates/_helpers.tpl | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/kubernetes/common/music/charts/zookeeper/templates/_helpers.tpl b/kubernetes/common/music/charts/zookeeper/templates/_helpers.tpl deleted file mode 100644 index 1ef5353fa1..0000000000 --- a/kubernetes/common/music/charts/zookeeper/templates/_helpers.tpl +++ /dev/null @@ -1,32 +0,0 @@ -{{/* vim: set filetype=mustache: */}} -{{/* -Expand the name of the chart. -*/}} -{{- define "common.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 "common.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 "zookeeper.chart" -}} -{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} -{{- end -}} |