diff --git a/pkg/component/controller/coredns.go b/pkg/component/controller/coredns.go index c900123ad0a5..abed2121b3d4 100644 --- a/pkg/component/controller/coredns.go +++ b/pkg/component/controller/coredns.go @@ -22,6 +22,7 @@ import ( "math" "path" "path/filepath" + "reflect" "time" "github.com/k0sproject/k0s/pkg/component/manager" @@ -429,7 +430,7 @@ func (c *CoreDNS) Reconcile(ctx context.Context, clusterConfig *v1beta1.ClusterC if err != nil { return fmt.Errorf("error calculating coredns configs: %v. will retry", err) } - if cfg == c.previousConfig { + if reflect.DeepEqual(c.previousConfig, cfg) { c.log.Infof("current cfg matches existing, not gonna do anything") return nil }