Skip to content

Commit ed3f9e8

Browse files
gflattersgflatters
andauthored
fix: crd-upgrader respects global nodeSelector/affinity/tolerations s… (#371)
* fix: crd-upgrader respects global nodeSelector/affinity/tolerations settings * update changelog --------- Co-authored-by: gflatters <[email protected]>
1 parent 7907e0c commit ed3f9e8

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
66

77
## [Unreleased]
88

9+
### Fixed
10+
- crd-upgrader respects global values for nodeSelector, affinity and tolerations
11+
912
## [v0.7.12] - 2025-08-04
1013

1114
### Fixed

deployments/kai-scheduler/templates/crd-upgrader.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,16 @@ spec:
1818
- name: upgrader
1919
image: "{{ .Values.global.registry }}/{{ .Values.crdupgrader.image.name }}:{{ .Chart.Version }}"
2020
imagePullPolicy: {{ .Values.crdupgrader.image.pullPolicy }}
21-
restartPolicy: OnFailure
21+
restartPolicy: OnFailure
22+
{{- if .Values.global.nodeSelector }}
23+
nodeSelector:
24+
{{- toYaml .Values.global.nodeSelector | nindent 8 }}
25+
{{- end }}
26+
{{- if .Values.global.affinity }}
27+
affinity:
28+
{{- toYaml .Values.global.affinity | nindent 8 }}
29+
{{- end }}
30+
{{- if .Values.global.tolerations }}
31+
tolerations:
32+
{{- toYaml .Values.global.tolerations | nindent 8 }}
33+
{{- end }}

0 commit comments

Comments
 (0)