init commit
This commit is contained in:
26
helm/templates/_helpers.tpl
Normal file
26
helm/templates/_helpers.tpl
Normal file
@@ -0,0 +1,26 @@
|
||||
{{- define "unifi.name" -}}
|
||||
{{- printf "%s" .Chart.Name | trunc 63 | trimSuffix "-" -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "unifi.name.config" -}}
|
||||
{{- printf "%s-config" .Chart.Name | trunc 56 | trimSuffix "-" -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "unifi.name.secret" -}}
|
||||
{{- printf "%s-secret" .Chart.Name | trunc 56 | trimSuffix "-" -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "unifi.credentials.name" -}}
|
||||
{{- printf "%s-credentials" .Chart.Name | trunc 51 | trimSuffix "-" -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "unifi.credentials.name.secret" -}}
|
||||
{{- printf "%s-credentials-secret" .Chart.Name | trunc 44 | trimSuffix "-" -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "unifi.labels" -}}
|
||||
app.kubernetes.io/name: {{ include "unifi.name" . }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
||||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version }}
|
||||
{{- end -}}
|
||||
Reference in New Issue
Block a user