-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle injected sidecars more correctly
Before this change, sidecars that are injected into the Pod by external Mutating Admission Controllers would not be guaranteed to be Ready before starting the first step, and would not be correctly stopped when steps finish. This is because we only considered containers with names starting with "sidecar-" as sidecars, and injected sidecars might have another name. Instead, with this change, we look for any *non-step* container, which must (currently) indicate a sidecar container, when waiting for or stopping sidecars. An added test covers this new behavior, which would have failed before this change.
- Loading branch information
1 parent
5af2878
commit 04fc509
Showing
3 changed files
with
47 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters