fix(k0s): only include workers in autopilot if there are any

This commit is contained in:
Devin Buhl authored and GitHub committed 2024-01-31 14:55:17 -05:00
1 parent d6e80ea087
commit 4159190a46
1 file changed
+2
@@ -18,6 +18,8 @@ spec:
controllers:
discovery:
selector: {}
{% if cluster.nodes.inventory | selectattr('controller', 'equalto', False) | list | length %}
workers:
discovery:
selector: {}
{% endif %}