diff --git a/bootstrap/templates/kubernetes/apps/system-upgrade/k0s/app/plan.yaml.j2 b/bootstrap/templates/kubernetes/apps/system-upgrade/k0s/app/plan.yaml.j2 index 2b355233..e167bc69 100644 --- a/bootstrap/templates/kubernetes/apps/system-upgrade/k0s/app/plan.yaml.j2 +++ b/bootstrap/templates/kubernetes/apps/system-upgrade/k0s/app/plan.yaml.j2 @@ -18,6 +18,8 @@ spec: controllers: discovery: selector: {} + {% if cluster.nodes.inventory | selectattr('controller', 'equalto', False) | list | length %} workers: discovery: selector: {} + {% endif %}