Mike Elliott | 3e7dc64 | 2018-02-12 15:33:55 -0500 | [diff] [blame^] | 1 | {{/* |
| 2 | Expand the name of a chart. |
| 3 | */}} |
| 4 | {{- define "common.name" -}} |
| 5 | {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} |
| 6 | {{- end -}} |
| 7 | |
| 8 | {{/* |
| 9 | Create a default fully qualified application name. |
| 10 | Truncated at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). |
| 11 | */}} |
| 12 | {{- define "common.fullname" -}} |
| 13 | {{- $name := default .Chart.Name .Values.nameOverride -}} |
| 14 | {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} |
| 15 | {{- end -}} |