From 3238e3a9f1c9cd27e01495aa78705988e95115df Mon Sep 17 00:00:00 2001 From: "guozhi.li" Date: Wed, 20 Sep 2023 16:57:02 +0800 Subject: [PATCH] fix:poolSSMatchesSpec always return false,nil --- pkg/controller/pools.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkg/controller/pools.go b/pkg/controller/pools.go index 4d8f643daa7..7fa04969494 100644 --- a/pkg/controller/pools.go +++ b/pkg/controller/pools.go @@ -82,10 +82,6 @@ func poolSSMatchesSpec(expectedStatefulSet, existingStatefulSet *appsv1.Stateful if miniov2.IsContainersEnvUpdated(existingStatefulSet.Spec.Template.Spec.Containers, expectedStatefulSet.Spec.Template.Spec.Containers) { return false, nil } - if !equality.Semantic.DeepEqual(expectedStatefulSet.Spec, existingStatefulSet.Spec) { - // some field set by the operator has changed - return false, nil - } return true, nil }