|
|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
{{/*
|
|
|
|
|
Expand the name of the chart.
|
|
|
|
|
*/}}
|
|
|
|
|
{{- define "rsyncd.name" -}}
|
|
|
|
|
{{- define "omada-controller.name" -}}
|
|
|
|
|
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
|
|
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
|
|
@ -10,7 +10,7 @@ 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).
|
|
|
|
|
If release name contains chart name it will be used as a full name.
|
|
|
|
|
*/}}
|
|
|
|
|
{{- define "rsyncd.fullname" -}}
|
|
|
|
|
{{- define "omada-controller.fullname" -}}
|
|
|
|
|
{{- if .Values.fullnameOverride }}
|
|
|
|
|
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
|
|
|
|
|
{{- else }}
|
|
|
|
|
@ -26,16 +26,16 @@ If release name contains chart name it will be used as a full name.
|
|
|
|
|
{{/*
|
|
|
|
|
Create chart name and version as used by the chart label.
|
|
|
|
|
*/}}
|
|
|
|
|
{{- define "rsyncd.chart" -}}
|
|
|
|
|
{{- define "omada-controller.chart" -}}
|
|
|
|
|
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
|
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
|
|
{{/*
|
|
|
|
|
Common labels
|
|
|
|
|
*/}}
|
|
|
|
|
{{- define "rsyncd.labels" -}}
|
|
|
|
|
helm.sh/chart: {{ include "rsyncd.chart" . }}
|
|
|
|
|
{{ include "rsyncd.selectorLabels" . }}
|
|
|
|
|
{{- define "omada-controller.labels" -}}
|
|
|
|
|
helm.sh/chart: {{ include "omada-controller.chart" . }}
|
|
|
|
|
{{ include "omada-controller.selectorLabels" . }}
|
|
|
|
|
{{- if .Chart.AppVersion }}
|
|
|
|
|
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
|
|
|
|
{{- end }}
|
|
|
|
|
@ -45,17 +45,17 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|
|
|
|
{{/*
|
|
|
|
|
Selector labels
|
|
|
|
|
*/}}
|
|
|
|
|
{{- define "rsyncd.selectorLabels" -}}
|
|
|
|
|
app.kubernetes.io/name: {{ include "rsyncd.name" . }}
|
|
|
|
|
{{- define "omada-controller.selectorLabels" -}}
|
|
|
|
|
app.kubernetes.io/name: {{ include "omada-controller.name" . }}
|
|
|
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
|
|
{{/*
|
|
|
|
|
Create the name of the service account to use
|
|
|
|
|
*/}}
|
|
|
|
|
{{- define "rsyncd.serviceAccountName" -}}
|
|
|
|
|
{{- define "omada-controller.serviceAccountName" -}}
|
|
|
|
|
{{- if .Values.serviceAccount.create }}
|
|
|
|
|
{{- default (include "rsyncd.fullname" .) .Values.serviceAccount.name }}
|
|
|
|
|
{{- default (include "omada-controller.fullname" .) .Values.serviceAccount.name }}
|
|
|
|
|
{{- else }}
|
|
|
|
|
{{- default "default" .Values.serviceAccount.name }}
|
|
|
|
|
{{- end }}
|
|
|
|
|
|