Skip to content

Commit 5fdcffd

Browse files
authored
chart: fix node selector (#5500)
Signed-off-by: zhangzujian <[email protected]>
1 parent e4827e6 commit 5fdcffd

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

charts/kube-ovn-v2/templates/ic/ic-controller-deploy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ spec:
109109
name: kube-ovn-log
110110
nodeSelector:
111111
kubernetes.io/os: "linux"
112-
kube-ovn/role: "master"
112+
{{ .Values.masterNodesLabels | toYaml | nindent 8 }}
113113
volumes:
114114
- name: host-run-ovn
115115
hostPath:

charts/kube-ovn/templates/ic-controller-deploy.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ spec:
109109
name: kube-ovn-log
110110
nodeSelector:
111111
kubernetes.io/os: "linux"
112-
kube-ovn/role: "master"
112+
{{- with splitList "=" .Values.MASTER_NODES_LABEL }}
113+
{{ index . 0 }}: "{{ if eq (len .) 2 }}{{ index . 1 }}{{ end }}"
114+
{{- end }}
113115
volumes:
114116
- name: host-run-ovn
115117
hostPath:

0 commit comments

Comments
 (0)