mirror of
https://github.com/outbackdingo/terraform-hcloud-talos.git
synced 2026-01-27 10:20:30 +00:00
fix: check worker_nodes in scheduling condition
This commit is contained in:
committed by
Marcel Richter
parent
beef961cde
commit
287b4f13df
@@ -109,7 +109,7 @@ locals {
|
||||
registries = var.registries
|
||||
}
|
||||
cluster = {
|
||||
allowSchedulingOnControlPlanes = var.control_plane_allow_schedule || var.worker_count <= 0
|
||||
allowSchedulingOnControlPlanes = var.control_plane_allow_schedule || (var.worker_count <= 0 && length(var.worker_nodes) <= 0)
|
||||
network = {
|
||||
dnsDomain = var.cluster_domain
|
||||
podSubnets = [
|
||||
|
||||
Reference in New Issue
Block a user