diff --git a/deploy/charts/openshift-routes/templates/_helpers.tpl b/deploy/charts/openshift-routes/templates/_helpers.tpl index 944e964..de10fc7 100644 --- a/deploy/charts/openshift-routes/templates/_helpers.tpl +++ b/deploy/charts/openshift-routes/templates/_helpers.tpl @@ -53,6 +53,7 @@ You can generate generate a static manifest free of Helm-specific labels by using `--set omitHelmLabels=true`. */}} {{- include "openshift-routes.selectorLabels" . }} +app.kubernetes.io/version: {{ .Chart.AppVersion }} {{- if not .Values.omitHelmLabels }} app.kubernetes.io/managed-by: {{ .Release.Service }} helm.sh/chart: {{ include "openshift-routes.chart" . }} @@ -65,7 +66,6 @@ Selector labels {{- define "openshift-routes.selectorLabels" -}} app.kubernetes.io/name: {{ include "openshift-routes.name" . }} app.kubernetes.io/component: controller -app.kubernetes.io/version: {{ .Chart.AppVersion }} {{- if not .Values.omitHelmLabels }} app.kubernetes.io/instance: {{ .Release.Name }} {{- end}} diff --git a/deploy/charts/openshift-routes/templates/deployment.yaml b/deploy/charts/openshift-routes/templates/deployment.yaml index e8bd914..ae3f435 100644 --- a/deploy/charts/openshift-routes/templates/deployment.yaml +++ b/deploy/charts/openshift-routes/templates/deployment.yaml @@ -17,7 +17,7 @@ spec: {{- toYaml . | nindent 8 }} {{- end }} labels: - {{- include "openshift-routes.selectorLabels" . | nindent 8 }} + {{- include "openshift-routes.labels" . | nindent 8 }} spec: automountServiceAccountToken: true {{- with .Values.imagePullSecrets }}