blob: a5149591e3016dc68a57cd3d803ed0868a35798d [file] [log] [blame]
Yi Tseng17657892021-10-11 16:04:59 -07001{{- /*
2
3# Copyright 2020-present Open Networking Foundation
4#
5# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
6
7*/ -}}
8
9{{/*
10Expand the name of the chart.
11*/}}
12{{- define "name" -}}
13{{- default .Chart.Name .Values.nameOverride | trunc 24 | trimSuffix "-" -}}
14{{- end -}}
15
16{{/*
17Create a default fully qualified app name.
18We 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 -}}