diff --git a/pkg/webhook/pod/mutating/sidecarset.go b/pkg/webhook/pod/mutating/sidecarset.go index 71be360448..284e867529 100644 --- a/pkg/webhook/pod/mutating/sidecarset.go +++ b/pkg/webhook/pod/mutating/sidecarset.go @@ -79,12 +79,6 @@ func (h *PodCreateHandler) sidecarsetMutatingPod(ctx context.Context, req admiss } else if !matched { continue } - // if the sidecarSet has been injected to the pod, - // check whether the pod is consistent with the sidecarSet. - if sidecarcontrol.IsPodInjectedSidecarSet(pod, &sidecarSet) && - !sidecarcontrol.IsPodConsistentWithSidecarSet(pod, &sidecarSet) { - continue - } // check whether sidecarSet is active // when sidecarSet is not active, it will not perform injections and upgrades process. control := sidecarcontrol.New(sidecarSet.DeepCopy())