Yi Tseng | 1765789 | 2021-10-11 16:04:59 -0700 | [diff] [blame] | 1 | {{- /* |
| 2 | |
| 3 | # Copyright 2020-present Open Networking Foundation |
| 4 | # |
Charles Chan | d1b4bf9 | 2022-02-02 16:27:10 -0800 | [diff] [blame] | 5 | # SPDX-License-Identifier: Apache-2.0 |
Yi Tseng | 1765789 | 2021-10-11 16:04:59 -0700 | [diff] [blame] | 6 | |
| 7 | */ -}} |
| 8 | |
| 9 | {{/* |
| 10 | Expand the name of the chart. |
| 11 | */}} |
| 12 | {{- define "name" -}} |
| 13 | {{- default .Chart.Name .Values.nameOverride | trunc 24 | trimSuffix "-" -}} |
| 14 | {{- end -}} |
| 15 | |
| 16 | {{/* |
| 17 | Create a default fully qualified app name. |
| 18 | We truncate at 63 chars because some Kubernetes name fields are limited to 63 (by the DNS naming spec). |
| 19 | */}} |
| 20 | {{- define "int-host-reporter.fullname" -}} |
| 21 | {{- $name := default .Chart.Name .Values.nameOverride -}} |
| 22 | {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} |
| 23 | {{- end -}} |