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

ssa: Set force delete propagation to cleanup jobs #670

Merged
merged 1 commit into from
Oct 18, 2023

Conversation

stefanprodan
Copy link
Member

Set the delete propagation to background to cleanup the pods for recreated Kubernetes Job.

Fix for child pods are preserved by default when jobs are deleted; set propagationPolicy=Background to remove them or set propagationPolicy=Orphan to suppress this warning. Because we haven't explicitly set the propagation policy, etcd gets filled will orphan pods after each force apply.

Set the delete propagation to background to cleanup the pods for recreated Job

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
@stefanprodan stefanprodan added the area/server-side-apply SSA related issues and pull requests label Oct 17, 2023
@stefanprodan stefanprodan merged commit a694b86 into main Oct 18, 2023
13 checks passed
@stefanprodan stefanprodan deleted the force-delete-propagation branch October 18, 2023 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/server-side-apply SSA related issues and pull requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants