-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding action field to the MBSC image spec and changing logic
accordingly Current implementation of BuildSign controller is running Build and Sign depending on the existence of the intermidiate images. Images are verified by the direct HTTP call to the repo, which we are trying to depricate. The new solution is to make MIC controller to decide what action MBSC controller needs to execute (Build or Sign). MIC controller makes this decision based on the status of the pull pods, and the status of the image in the MBSC: 1) if pull pod fails - schedule Build if Build config exists in image Spec 2) if pull pods fails - schedule Sign , if Build config missing and Sign config exists in the image Spec 3) if MBSC status is BuildSuccess - schedule Sign if config exists in the image spec, otherwise set the image to Exists 4) if MBSC status is BuildFailed - set the image status to ImageDoesNotExist 5) if MBSC status is SignSuccess - set the image to Exists 6) if MBSC status is SignFailed - set the image to ImageDoesNotExist The changes in PR: 1) chaning the MBSC CRD - adding field and renaming some of the fields 2) updating MBSC package and unit-tests 3) updating MIC controller and unit-test
- Loading branch information
1 parent
b9c7d94
commit bfdf108
Showing
9 changed files
with
279 additions
and
126 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.