X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=vnfs%2FDAaaS%2Fdeploy%2Fistio-config%2Fminio-config%2Fminio-istio-connectivity%2Ftemplates%2F_helpers.tpl;fp=vnfs%2FDAaaS%2Fdeploy%2Fistio-config%2Fminio-config%2Fminio-istio-connectivity%2Ftemplates%2F_helpers.tpl;h=5516ee450606c398fc5486079b5c9eb56e7b4ba9;hb=7da06c296697269dd25fe03528c9f12b62206482;hp=0000000000000000000000000000000000000000;hpb=d614d3d6cc1d40664215f79fc2c2f38af03a9996;p=demo.git diff --git a/vnfs/DAaaS/deploy/istio-config/minio-config/minio-istio-connectivity/templates/_helpers.tpl b/vnfs/DAaaS/deploy/istio-config/minio-config/minio-istio-connectivity/templates/_helpers.tpl new file mode 100644 index 00000000..5516ee45 --- /dev/null +++ b/vnfs/DAaaS/deploy/istio-config/minio-config/minio-istio-connectivity/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). +If release name contains chart name it will be used as a full name. +*/}} +{{- define "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 -}}