From ed00c10157947304a9a607c28210cdcf52ee0599 Mon Sep 17 00:00:00 2001 From: "liheng.zms" Date: Tue, 15 Mar 2022 19:14:54 +0800 Subject: [PATCH] Support in place upgrade Pod injection sidecar container Signed-off-by: liheng.zms --- pkg/webhook/pod/mutating/sidecarset.go | 6 ------ 1 file changed, 6 deletions(-) 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())