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

fix: clean up imagejob when eraser-manager pod is deleted #875

Merged
merged 7 commits into from
Sep 28, 2023

Conversation

ashnamehrotra
Copy link
Contributor

@ashnamehrotra ashnamehrotra commented Sep 26, 2023

Signed-off-by: ashnamehrotra ashnamehrotra@gmail.com

What this PR does / why we need it:
Cleans up ImageJob when eraser-manager pod is deleted, which deletes PodTemplate. Currently, only the eraser and pod template are cleaned up due to the way the owner references are set. This messes up the ImageJob reconcile since we only cleaned up existing jobs in "first reconcile" before this.

Which issue(s) this PR fixes (optional, using fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when the PR gets merged):
Fixes #868

Special notes for your reviewer:

Signed-off-by: ashnamehrotra <ashnamehrotra@gmail.com>
Signed-off-by: ashnamehrotra <ashnamehrotra@gmail.com>
Signed-off-by: ashnamehrotra <ashnamehrotra@gmail.com>
Signed-off-by: ashnamehrotra <ashnamehrotra@gmail.com>
Signed-off-by: ashnamehrotra <ashnamehrotra@gmail.com>
Signed-off-by: ashnamehrotra <ashnamehrotra@gmail.com>
Signed-off-by: ashnamehrotra <ashnamehrotra@gmail.com>
Copy link
Contributor

@pmengelbert pmengelbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@pmengelbert pmengelbert merged commit 868f241 into eraser-dev:main Sep 28, 2023
88 checks passed
pmengelbert pushed a commit to pmengelbert/eraser that referenced this pull request Sep 28, 2023
…#875)

Signed-off-by: ashnamehrotra <ashnamehrotra@gmail.com>
pmengelbert added a commit that referenced this pull request Sep 28, 2023
Signed-off-by: ashnamehrotra <ashnamehrotra@gmail.com>
Signed-off-by: Peter Engelbert <pmengelbert@gmail.com>
Co-authored-by: ashnamehrotra <ashnamehrotra@gmail.com>
@ashnamehrotra ashnamehrotra mentioned this pull request Sep 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PodTemplate not found
2 participants