Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ImageManager): add --job-retention-policy flag to the controller #160

Merged
merged 4 commits into from
Apr 13, 2022

Conversation

niladrih
Copy link
Contributor

@niladrih niladrih commented Apr 12, 2022

Signed-off-by: Niladri Halder niladri.halder26@gmail.com

Resolves #101

This PR adds the '--job-retention-policy' flag to the controller. Possible values for this flag are 'delete' and 'retain'.

delete behavior:

  • Delete Image Manager jobs after a Job status is acquired by the lister.

retain behavior:

  • Leave Image Manager jobs in the cluster after a Job status is acquired by the lister.

Signed-off-by: Niladri Halder <niladri.halder26@gmail.com>
@niladrih
Copy link
Contributor Author

I've built and tested on k8s 1.23.3 (linux/arm64)
@senthilrch PTAL. Thanks.

Signed-off-by: Niladri Halder <niladri.halder26@gmail.com>
Signed-off-by: Niladri Halder <niladri.halder26@gmail.com>
README.md Outdated Show resolved Hide resolved
docs/helm-parameters.md Outdated Show resolved Hide resolved
Signed-off-by: Niladri Halder <niladri.halder26@gmail.com>
@niladrih
Copy link
Contributor Author

@senthilrch -- Made the changes. PTAL. Thanks

@niladrih niladrih requested a review from senthilrch April 13, 2022 13:47
@senthilrch senthilrch merged commit aed7717 into senthilrch:develop Apr 13, 2022
@niladrih niladrih deleted the 101-retain-jobs branch April 13, 2022 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants