@@ -8,18 +8,14 @@ Expand the name of the chart.
88{ {/*
99Create a default fully qualified app name.
1010We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
11- If release name contains chart name it will be used as a full name.
1211*/} }
1312{ {- define " ingress-monitor-controller.fullname" -} }
1413{ {- if .Values.fullnameOverride } }
1514{ {- .Values.fullnameOverride | trunc 63 | trimSuffix " -" } }
15+ { {- else if .Values.nameOverride } }
16+ { {- .Values.nameOverride | trunc 63 | trimSuffix " -" } }
1617{ {- else } }
17- { {- $name := default .Chart.Name .Values.nameOverride } }
18- { {- if contains $name .Release.Name } }
19- { {- .Release.Name | trunc 63 | trimSuffix " -" } }
20- { {- else } }
21- { {- printf " %s-%s" .Release.Name $name | trunc 63 | trimSuffix " -" } }
22- { {- end } }
18+ { {- .Chart.Name | trunc 63 | trimSuffix " -" } }
2319{ {- end } }
2420{ {- end } }
2521
@@ -39,7 +35,7 @@ helm.sh/chart: {{ include "ingress-monitor-controller.chart" . }}
3935{ {- if .Chart.AppVersion } }
4036app.kubernetes.io/version: { { .Chart.AppVersion | quote } }
4137{ {- end } }
42- app.kubernetes.io/managed-by: { { .Release.Service } }
38+ app.kubernetes.io/managed-by: { { .Values.serviceManagedBy } }
4339{ {- if .Values.global.labels } }
4440{ { toYaml .Values.global.labels } }
4541{ {- end } }
@@ -50,7 +46,7 @@ Selector labels
5046*/} }
5147{ {- define " ingress-monitor-controller.selectorLabels" -} }
5248app.kubernetes.io/name: { { include " ingress-monitor-controller.name" . } }
53- app.kubernetes.io/instance: { { .Release.Name } }
49+ app.kubernetes.io/instance: { { .Values.name | default . Release.Name } }
5450{ {- end } }
5551
5652{ {/*
@@ -65,10 +61,10 @@ Create the name of the service account to use
6561{ {- end } }
6662
6763{ {/*
68- Verify that CRDs are installed
64+ Verify that CRDs are installed
6965*/} }
7066{ {- define " verify_crds_exist" -} }
7167 { {- if .Capabilities.APIVersions.Has " endpointmonitor.stakater.com/v1alpha1" -} }
7268 true
7369 { {- end -} }
74- { {- end -} }
70+ { {- end -} }
0 commit comments