Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8819f79

Browse files
authored
fix(helm): revert app.kubernetes.io/part-of as a selector (#5806)
Deployment selectors are immutable!
1 parent 546a893 commit 8819f79

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

helm/templates/_helpers.tpl

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@ Create chart name and version as used by the chart label.
1414

1515
{{/*
1616
Selector labels
17+
18+
!!!!! DO NOT ADD ANY MORE SELECTORS. IT IS A BREAKING CHANGE !!!!!
1719
*/}}
1820
{{- define "coder.selectorLabels" -}}
1921
app.kubernetes.io/name: {{ include "coder.name" . }}
2022
app.kubernetes.io/instance: {{ .Release.Name }}
21-
app.kubernetes.io/part-of: {{ include "coder.name" . }}
2223
{{- end }}
2324

2425
{{/*
@@ -27,6 +28,7 @@ Common labels
2728
{{- define "coder.labels" -}}
2829
helm.sh/chart: {{ include "coder.chart" . }}
2930
{{ include "coder.selectorLabels" . }}
31+
app.kubernetes.io/part-of: {{ include "coder.name" . }}
3032
{{- if .Chart.AppVersion }}
3133
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
3234
{{- end }}

helm/templates/coder.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ spec:
2424
template:
2525
metadata:
2626
labels:
27-
{{- include "coder.selectorLabels" . | nindent 8 }}
27+
{{- include "coder.labels" . | nindent 8 }}
2828
spec:
2929
serviceAccountName: coder
3030
restartPolicy: Always

0 commit comments

Comments
 (0)