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: block isbsvc deleting when there is linked pipeline #2202

Merged
merged 3 commits into from
Nov 5, 2024

Conversation

whynowy
Copy link
Member

@whynowy whynowy commented Nov 5, 2024

This should sort of fix the problem in #1956.

@whynowy whynowy requested a review from vigith as a code owner November 5, 2024 00:09
Signed-off-by: Derek Wang <[email protected]>
@whynowy whynowy requested a review from kohlisid November 5, 2024 00:15
Copy link

codecov bot commented Nov 5, 2024

Codecov Report

Attention: Patch coverage is 74.07407% with 7 lines in your changes missing coverage. Please review.

Please upload report for BASE (main@83dd070). Learn more about missing BASE report.
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
pkg/reconciler/isbsvc/installer/installer.go 75.00% 4 Missing and 2 partials ⚠️
pkg/reconciler/isbsvc/controller.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2202   +/-   ##
=======================================
  Coverage        ?   63.93%           
=======================================
  Files           ?      334           
  Lines           ?    40676           
  Branches        ?        0           
=======================================
  Hits            ?    26006           
  Misses          ?    13611           
  Partials        ?     1059           

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

Signed-off-by: Derek Wang <[email protected]>
return fmt.Errorf("failed to check if there is any pipeline using this InterStepBufferService, %w", err)
}
if pls > 0 {
return fmt.Errorf("can not delete InterStepBufferService %q which has %d pipelines connected", isbSvc.Name, pls)
Copy link
Member

Choose a reason for hiding this comment

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

will printing the pipeline names help the end user?

Copy link
Member Author

Choose a reason for hiding this comment

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

This will show up in ISBService status, which means it displays in kubectl get isbsvc

@whynowy
Copy link
Member Author

whynowy commented Nov 5, 2024

Screenshot 2024-11-04 at 8 14 06 PM

@whynowy whynowy merged commit 9c1d3ce into numaproj:main Nov 5, 2024
25 checks passed
@whynowy whynowy deleted the mmm branch November 5, 2024 05:10
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.

2 participants