Skip to content

Commit

Permalink
Alternate workerPoolHash when dualstack is enabled (#21)
Browse files Browse the repository at this point in the history
Signed-off-by: Artiom Diomin <artiom.diomin@sap.com>
  • Loading branch information
kron4eg committed Dec 13, 2024
1 parent 8060a69 commit 4e1b012
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/controller/worker/machines.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (

"github.com/gardener/gardener/extensions/pkg/controller/worker"
genericworkeractuator "github.com/gardener/gardener/extensions/pkg/controller/worker/genericactuator"
gardencorev1beta1 "github.com/gardener/gardener/pkg/apis/core/v1beta1"
v1beta1constants "github.com/gardener/gardener/pkg/apis/core/v1beta1/constants"
"github.com/gardener/gardener/pkg/apis/extensions/v1alpha1"
extensionsv1alpha1helper "github.com/gardener/gardener/pkg/apis/extensions/v1alpha1/helper"
Expand Down Expand Up @@ -378,6 +379,10 @@ func (w *workerDelegate) generateWorkerPoolHash(pool v1alpha1.WorkerPool, worker
}
}

if nw := w.cluster.Shoot.Spec.Networking; nw != nil && !gardencorev1beta1.IsIPv4SingleStack(nw.IPFamilies) {
additionalData = append(additionalData, "dualstack=enabled")
}

return worker.WorkerPoolHash(pool, w.cluster, []string{}, additionalData)
}

Expand Down

0 comments on commit 4e1b012

Please sign in to comment.