Skip to content

Commit dc0193f

Browse files
authored
fix: no taint/label (#64)
1 parent 5097ba3 commit dc0193f

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

node/cloud-init.yaml.tpl

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -274,14 +274,18 @@ write_files:
274274
server: https://${internal_vip}:9345
275275
node-ip: ${node_ip}
276276
cloud-provider-name: external
277+
%{~ if length(node_taints) > 0 ~}
277278
node-taint:
278-
%{ for k, v in node_taints ~}
279-
- "${k}=${v}"
280-
%{ endfor ~}
281-
node-label:
282-
%{ for k, v in node_labels ~}
283-
- "${k}=${v}"
284-
%{ endfor ~}
279+
%{ for k, v in node_taints ~}
280+
- "${k}=${v}"
281+
%{ endfor ~}
282+
%{~ endif ~}
283+
%{~ if length(node_labels) > 0 ~}
284+
node-label:
285+
%{ for k, v in node_labels ~}
286+
- "${k}=${v}"
287+
%{ endfor ~}
288+
%{~ endif ~}
285289
%{~ endif ~}
286290

287291
runcmd:

0 commit comments

Comments
 (0)