-
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.
Fix pvc vs bucket detection case 🌵
Depending on the `config-artifact-bucket` configMap, `build-pipeline` will create either a PVC or GCS Bucket for sharing output between task(run)s in the pipeline. There was a bug (or missing case) in the code that checks if it needs to create PVC. We want to create a PVC in the following cases: - the `config-artifact-bucket` configMap is missing - the `config-artifact-bucket` configMap data is empty - the `config-artifact-bucket` configMap has no `BucketLocationKey` (aka `location`) *or* it's value is empty. The 2nd case wasn't correctly handled between `InitializedArtifactStorage` and `GetArtifactStorage` functions. Signed-off-by: Vincent Demeester <[email protected]>
- Loading branch information
1 parent
6cdf87e
commit c8f5430
Showing
5 changed files
with
131 additions
and
43 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