-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make data injection idempotent (#1085)
This PR addresses some race conditions that can exist when running data injections or performing data injections. Key changes: - Replace `WaitForPodsAndContainers()` second argument, `waitForAllPods` with a new filter function and return all pods found leaving it to the caller to determine any further action (only data injection needed more than one pod) - Properly deal with matching the correct init containers based on the `dataInjectionMarker` so that we don't match other failed installs - Properly validate after injection that at least one pod with the correct `dataInjectionMarker` is now ready - No longer warn and keep going on failure but retry the injection again - Add 3 x data injection tests to ensure idempotence is working as expected
- Loading branch information
1 parent
42e7b5d
commit 7f02f05
Showing
5 changed files
with
41 additions
and
18 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
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