Skip to content

Commit

Permalink
don't use version label in Delployment label selector
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Ramlot <[email protected]>
  • Loading branch information
inteon committed Aug 12, 2024
1 parent 40d707f commit b36d537
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deploy/charts/openshift-routes/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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" . }}
Expand All @@ -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}}
Expand Down
2 changes: 1 addition & 1 deletion deploy/charts/openshift-routes/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit b36d537

Please sign in to comment.