Skip to content

Commit

Permalink
optimization: helm charts matchLabels 补充 (closed TencentBlueKing#1024)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhuoZhuoCrayon committed Aug 30, 2022
1 parent eae6037 commit 65315cd
Show file tree
Hide file tree
Showing 13 changed files with 24 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dev_log/2.2.22/crayon_202208301930.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
optimization:
- "helm charts matchLabels 补充 (closed #1024)"
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ spec:
selector:
matchLabels:
{{- include "bk-nodeman.selectorLabels" . | nindent 6 }}
app.kubernetes.io/component: "{{ $fullName }}"
template:
metadata:
{{- with .Values.podAnnotations }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ spec:
selector:
matchLabels:
{{- include "bk-nodeman.selectorLabels" . | nindent 6 }}
app.kubernetes.io/component: "{{ $fullName }}"
template:
metadata:
{{- with .Values.podAnnotations }}
Expand All @@ -29,6 +30,7 @@ spec:
{{- end }}
labels:
{{- include "bk-nodeman.selectorLabels" . | nindent 8 }}
app.kubernetes.io/component: "{{ $fullName }}"
spec:
{{- with .Values.global.imagePullSecrets }}
imagePullSecrets:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ spec:
selector:
matchLabels:
{{- include "bk-nodeman.selectorLabels" . | nindent 6 }}
app.kubernetes.io/component: "{{ $fullName }}"
template:
metadata:
{{- with .Values.podAnnotations }}
Expand All @@ -29,6 +30,7 @@ spec:
{{- end }}
labels:
{{- include "bk-nodeman.selectorLabels" . | nindent 8 }}
app.kubernetes.io/component: "{{ $fullName }}"
spec:
{{- with .Values.global.imagePullSecrets }}
imagePullSecrets:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ spec:
selector:
matchLabels:
{{- include "bk-nodeman.selectorLabels" . | nindent 6 }}
app.kubernetes.io/component: "{{ $fullName }}"
template:
metadata:
{{- with .Values.podAnnotations }}
Expand All @@ -29,6 +30,7 @@ spec:
{{- end }}
labels:
{{- include "bk-nodeman.selectorLabels" . | nindent 8 }}
app.kubernetes.io/component: "{{ $fullName }}"
spec:
{{- with .Values.global.imagePullSecrets }}
imagePullSecrets:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ spec:
selector:
matchLabels:
{{- include "bk-nodeman.selectorLabels" . | nindent 6 }}
app.kubernetes.io/component: "{{ $fullName }}"
template:
metadata:
{{- with .Values.podAnnotations }}
Expand All @@ -29,6 +30,7 @@ spec:
{{- end }}
labels:
{{- include "bk-nodeman.selectorLabels" . | nindent 8 }}
app.kubernetes.io/component: "{{ $fullName }}"
spec:
{{- with .Values.global.imagePullSecrets }}
imagePullSecrets:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ spec:
selector:
matchLabels:
{{- include "bk-nodeman.selectorLabels" . | nindent 6 }}
app.kubernetes.io/component: "{{ $fullName }}"
template:
metadata:
{{- with .Values.podAnnotations }}
Expand All @@ -29,6 +30,7 @@ spec:
{{- end }}
labels:
{{- include "bk-nodeman.selectorLabels" . | nindent 8 }}
app.kubernetes.io/component: "{{ $fullName }}"
spec:
{{- with .Values.global.imagePullSecrets }}
imagePullSecrets:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ spec:
selector:
matchLabels:
{{- include "bk-nodeman.selectorLabels" . | nindent 6 }}
app.kubernetes.io/component: "{{ $fullName }}"
template:
metadata:
{{- with .Values.podAnnotations }}
Expand All @@ -29,6 +30,7 @@ spec:
{{- end }}
labels:
{{- include "bk-nodeman.selectorLabels" . | nindent 8 }}
app.kubernetes.io/component: "{{ $fullName }}"
spec:
{{- with .Values.global.imagePullSecrets }}
imagePullSecrets:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ spec:
selector:
matchLabels:
{{- include "bk-nodeman.selectorLabels" . | nindent 6 }}
app.kubernetes.io/component: "{{ $fullName }}"
template:
metadata:
{{- with .Values.podAnnotations }}
Expand All @@ -29,6 +30,7 @@ spec:
{{- end }}
labels:
{{- include "bk-nodeman.selectorLabels" . | nindent 8 }}
app.kubernetes.io/component: "{{ $fullName }}"
spec:
{{- with .Values.global.imagePullSecrets }}
imagePullSecrets:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ spec:
selector:
matchLabels:
{{- include "bk-nodeman.selectorLabels" . | nindent 6 }}
app.kubernetes.io/component: "{{ $fullName }}"
template:
metadata:
{{- with .Values.podAnnotations }}
Expand All @@ -29,6 +30,7 @@ spec:
{{- end }}
labels:
{{- include "bk-nodeman.selectorLabels" . | nindent 8 }}
app.kubernetes.io/component: "{{ $fullName }}"
spec:
{{- with .Values.global.imagePullSecrets }}
imagePullSecrets:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ spec:
selector:
matchLabels:
{{- include "bk-nodeman.selectorLabels" . | nindent 6 }}
app.kubernetes.io/component: "{{ $fullName }}"
template:
metadata:
{{- with .Values.podAnnotations }}
Expand All @@ -29,6 +30,7 @@ spec:
{{- end }}
labels:
{{- include "bk-nodeman.selectorLabels" . | nindent 8 }}
app.kubernetes.io/component: "{{ $fullName }}"
spec:
{{- with .Values.global.imagePullSecrets }}
imagePullSecrets:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ spec:
selector:
matchLabels:
{{- include "bk-nodeman.selectorLabels" . | nindent 6 }}
app.kubernetes.io/component: "{{ $fullName }}"
template:
metadata:
{{- with .Values.podAnnotations }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ spec:
selector:
matchLabels:
{{- include "bk-nodeman.selectorLabels" . | nindent 6 }}
app.kubernetes.io/component: "{{ $fullName }}"
template:
metadata:
{{- with .Values.podAnnotations }}
Expand Down

0 comments on commit 65315cd

Please sign in to comment.