Skip to content

Commit 8e2174d

Browse files
authored
Merge pull request #683 from uncycler/feature/crdtoleration
helm: use same toleration and nodeselector for crd-hook jobs
2 parents b080eee + 2a64de8 commit 8e2174d

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

manifest_staging/charts/secrets-store-csi-driver/templates/crds-upgrade-hook.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,10 @@ spec:
6969
imagePullPolicy: {{ .Values.linux.crds.image.pullPolicy }}
7070
nodeSelector:
7171
kubernetes.io/os: linux
72+
{{- if .Values.linux.nodeSelector }}
73+
{{- toYaml .Values.linux.nodeSelector | nindent 8 }}
74+
{{- end }}
75+
{{- with .Values.linux.tolerations }}
76+
tolerations:
77+
{{ toYaml . | indent 8 }}
78+
{{- end }}

manifest_staging/charts/secrets-store-csi-driver/templates/keep-crds-upgrade-hook.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,10 @@ spec:
7272
imagePullPolicy: {{ .Values.linux.crds.image.pullPolicy }}
7373
nodeSelector:
7474
kubernetes.io/os: linux
75+
{{- if .Values.linux.nodeSelector }}
76+
{{- toYaml .Values.linux.nodeSelector | nindent 8 }}
77+
{{- end }}
78+
{{- with .Values.linux.tolerations }}
79+
tolerations:
80+
{{ toYaml . | indent 8 }}
81+
{{- end }}

0 commit comments

Comments
 (0)