fix(k0s): only include workers in autopilot if there are any
This commit is contained in:
1 parent
d6e80ea087
commit
4159190a46
1 file changed
+2
@@ -18,6 +18,8 @@ spec:
|
|||||||
controllers:
|
controllers:
|
||||||
discovery:
|
discovery:
|
||||||
selector: {}
|
selector: {}
|
||||||
|
{% if cluster.nodes.inventory | selectattr('controller', 'equalto', False) | list | length %}
|
||||||
workers:
|
workers:
|
||||||
discovery:
|
discovery:
|
||||||
selector: {}
|
selector: {}
|
||||||
|
{% endif %}
|
||||||
Reference in new issue
Block a user