forked from tektoncd/pipeline
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix TaskRunSpec overrides when empty 🗜
In case of TaskRunSpec being present on a PipelineRun, we override the PipelineTask PodTemplate and ServiceAccount blindly, even if those values are empty (empty string, nil point) This fixes this behavior by overriding PodTemplate and/or ServiceAccountName only when they are not empty values. Signed-off-by: Vincent Demeester <[email protected]>
- Loading branch information
1 parent
ceeec64
commit 695d117
Showing
3 changed files
with
136 additions
and
4 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