github.com/replicatedcom/ship@v0.50.0/integration/init/istio-1.0.3/expected/.ship/upstream/templates/_helpers.tpl (about) 1 {{/* vim: set filetype=mustache: */}} 2 {{/* 3 Expand the name of the chart. 4 */}} 5 {{- define "istio.name" -}} 6 {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} 7 {{- end -}} 8 9 {{/* 10 Create a default fully qualified app name. 11 We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). 12 */}} 13 {{- define "istio.fullname" -}} 14 {{- $name := default .Chart.Name .Values.nameOverride -}} 15 {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} 16 {{- end -}} 17 18 {{/* 19 Create a fully qualified configmap name. 20 */}} 21 {{- define "istio.configmap.fullname" -}} 22 {{- printf "%s-%s" .Release.Name "istio-mesh-config" | trunc 63 | trimSuffix "-" -}} 23 {{- end -}} 24 25 {{/* 26 Configmap checksum. 27 */}} 28 {{- define "istio.configmap.checksum" -}} 29 {{- print $.Template.BasePath "/configmap.yaml" | sha256sum -}} 30 {{- end -}}