diff --git a/pkg/utils/utils.go b/pkg/utils/utils.go index df698292..7a18f348 100644 --- a/pkg/utils/utils.go +++ b/pkg/utils/utils.go @@ -41,7 +41,7 @@ func NonZeroValue(value int32) int32 { } func LeaderWorkerTemplateHash(lws *leaderworkerset.LeaderWorkerSet) string { - if lws.Spec.NetworkConfig == nil { + if lws.Spec.NetworkConfig == nil || string(*lws.Spec.NetworkConfig.SubdomainPolicy) == string(leaderworkerset.SubdomainShared) { return Sha1Hash(lws.Spec.LeaderWorkerTemplate.LeaderTemplate.String() + lws.Spec.LeaderWorkerTemplate.WorkerTemplate.String()) }