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 <abhijit.mukherjee@infracloud.io> * Nil pointer fix Signed-off-by: Abhijit Mukherjee <abhijit.mukherjee@infracloud.io> * Addressed review comment Signed-off-by: Abhijit Mukherjee <abhijit.mukherjee@infracloud.io> * Moved debug label addition logic to common place Signed-off-by: Abhijit Mukherjee <abhijit.mukherjee@infracloud.io> * Adjusted imports Signed-off-by: Abhijit Mukherjee <abhijit.mukherjee@infracloud.io> * Added debug label to additional ephemral pods Signed-off-by: Abhijit Mukherjee <abhijit.mukherjee@infracloud.io> * Revert "Added debug label to additional ephemral pods" This reverts commit 444786f. * Addressed review comments Signed-off-by: Abhijit Mukherjee <abhijit.mukherjee@infracloud.io> * Addressed review comments Signed-off-by: Abhijit Mukherjee <abhijit.mukherjee@infracloud.io> * Added unit test for jobid debug label in ephemeral pod Signed-off-by: Abhijit Mukherjee <abhijit.mukherjee@infracloud.io> * Fix lint error and addressed missed review comment Signed-off-by: Abhijit Mukherjee <abhijit.mukherjee@infracloud.io> * Refactored add labels to pod function Signed-off-by: Abhijit Mukherjee <abhijit.mukherjee@infracloud.io> * Rearranged imports Signed-off-by: Abhijit Mukherjee <abhijit.mukherjee@infracloud.io> * Rearranged imports with minor refactor Signed-off-by: Abhijit Mukherjee <abhijit.mukherjee@infracloud.io> * Simplify validateLabelKeyIsPresentFromContext and AddLabelToPodOptions funcs Signed-off-by: Abhijit Mukherjee <abhijit.mukherjee@infracloud.io> * Rearrange utility func and imports Signed-off-by: Abhijit Mukherjee <abhijit.mukherjee@infracloud.io> * Addressed review comment Signed-off-by: Abhijit Mukherjee <abhijit.mukherjee@infracloud.io> * Refactor test cases Signed-off-by: Abhijit Mukherjee <abhijit.mukherjee@infracloud.io> * Addressed review comments w.r.t formatting * Addressed review comment adding additional validation --------- Signed-off-by: Abhijit Mukherjee <abhijit.mukherjee@infracloud.io> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information