-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mark ephemeral pods created as part of kanister functions with JobID …
…label (#2778) * Identify 'kanister-job' prefix pods with jobID Signed-off-by: Abhijit Mukherjee <[email protected]> * Nil pointer fix Signed-off-by: Abhijit Mukherjee <[email protected]> * Addressed review comment Signed-off-by: Abhijit Mukherjee <[email protected]> * Moved debug label addition logic to common place Signed-off-by: Abhijit Mukherjee <[email protected]> * Adjusted imports Signed-off-by: Abhijit Mukherjee <[email protected]> * Added debug label to additional ephemral pods Signed-off-by: Abhijit Mukherjee <[email protected]> * Revert "Added debug label to additional ephemral pods" This reverts commit 444786f. * Addressed review comments Signed-off-by: Abhijit Mukherjee <[email protected]> * Addressed review comments Signed-off-by: Abhijit Mukherjee <[email protected]> * Added unit test for jobid debug label in ephemeral pod Signed-off-by: Abhijit Mukherjee <[email protected]> * Fix lint error and addressed missed review comment Signed-off-by: Abhijit Mukherjee <[email protected]> * Refactored add labels to pod function Signed-off-by: Abhijit Mukherjee <[email protected]> * Rearranged imports Signed-off-by: Abhijit Mukherjee <[email protected]> * Rearranged imports with minor refactor Signed-off-by: Abhijit Mukherjee <[email protected]> * Simplify validateLabelKeyIsPresentFromContext and AddLabelToPodOptions funcs Signed-off-by: Abhijit Mukherjee <[email protected]> * Rearrange utility func and imports Signed-off-by: Abhijit Mukherjee <[email protected]> * Addressed review comment Signed-off-by: Abhijit Mukherjee <[email protected]> * Refactor test cases Signed-off-by: Abhijit Mukherjee <[email protected]> * Addressed review comments w.r.t formatting * Addressed review comment adding additional validation --------- Signed-off-by: Abhijit Mukherjee <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
5873c1f
commit c214c35
Showing
3 changed files
with
113 additions
and
2 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