Skip to content

Commit

Permalink
Support in place upgrade Pod injection sidecar container (openkruise#927
Browse files Browse the repository at this point in the history
)
  • Loading branch information
zmberg authored Mar 15, 2022
1 parent 18405fc commit be70804
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions pkg/webhook/pod/mutating/sidecarset.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit be70804

Please sign in to comment.