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

[v1.6.x][BACKPORT] seedimage: clean-up service on image download deadline (#719) #901

Merged
merged 1 commit into from
Feb 18, 2025

Conversation

davidcassany
Copy link
Contributor

  • seedimage: clean-up service on image download deadline

We used to just clean-up the Pod carrying the built image when hitting the cleanupAfterMinutes deadline.
There is no need to leave the Service around, clean that up too.

Fixes #704

Signed-off-by: Francesco Giudici francesco.giudici@suse.com

  • Update controllers/seedimage_controller.go

Co-authored-by: Fredrik Lönnegren fredrik.lonnegren@gmail.com
Signed-off-by: Francesco Giudici francesco.giudici@gmail.com


Signed-off-by: Francesco Giudici francesco.giudici@suse.com
Signed-off-by: Francesco Giudici francesco.giudici@gmail.com
Co-authored-by: Fredrik Lönnegren fredrik.lonnegren@gmail.com
(cherry picked from commit 5f2b96c)

* seedimage: clean-up service on image download deadline

We used to just clean-up the Pod carrying the built image when hitting
the cleanupAfterMinutes deadline.
There is no need to leave the Service around, clean that up too.

Fixes rancher#704

Signed-off-by: Francesco Giudici <francesco.giudici@suse.com>

* Update controllers/seedimage_controller.go

Co-authored-by: Fredrik Lönnegren <fredrik.lonnegren@gmail.com>
Signed-off-by: Francesco Giudici <francesco.giudici@gmail.com>

---------

Signed-off-by: Francesco Giudici <francesco.giudici@suse.com>
Signed-off-by: Francesco Giudici <francesco.giudici@gmail.com>
Co-authored-by: Fredrik Lönnegren <fredrik.lonnegren@gmail.com>
(cherry picked from commit 5f2b96c)
@davidcassany davidcassany requested a review from a team as a code owner February 18, 2025 13:41
Copy link

codecov bot commented Feb 18, 2025

Codecov Report

Attention: Patch coverage is 21.42857% with 11 lines in your changes missing coverage. Please review.

Please upload report for BASE (v1.6.x@ddb24ef). Learn more about missing BASE report.

Files with missing lines Patch % Lines
controllers/seedimage_controller.go 21.42% 9 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##             v1.6.x     #901   +/-   ##
=========================================
  Coverage          ?   56.27%           
=========================================
  Files             ?       42           
  Lines             ?     6422           
  Branches          ?        0           
=========================================
  Hits              ?     3614           
  Misses            ?     2486           
  Partials          ?      322           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@fgiudici fgiudici left a comment

Choose a reason for hiding this comment

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

looks good!

@fgiudici fgiudici changed the title [BACKPORT] seedimage: clean-up service on image download deadline (#719) [v1.6.x][BACKPORT] seedimage: clean-up service on image download deadline (#719) Feb 18, 2025
@davidcassany davidcassany merged commit b4116bf into rancher:v1.6.x Feb 18, 2025
9 of 11 checks passed
@davidcassany davidcassany deleted the SURE-8232 branch February 18, 2025 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants