/
githubmirror
/
charts
Обзор
Документация
Войти
/
githubmirror
/
charts
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
stable/gcloud-sqlproxy/templates/_helpers.tpl
20 строк
682 B
tim.smyth
Added new parameter fullnameOverride
11 дек 2017, 15:53
11 дек 2017, 15:53
827ba16
Код
Авторство
О чём код?
{{/* vim: set filetype=mustache: */}} {{/* Expand the name of the chart. */}} {{- define "gcloud-sqlproxy.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 "gcloud-sqlproxy.fullname" -}} {{- if .Values.fullnameOverride -}} {{- printf "%s" .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} {{- else -}} {{- $name := default .Chart.Name .Values.nameOverride -}} {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} {{- end -}} {{- end -}}