Skip to content

feat: add default stop handler #1572

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

Merged
merged 2 commits into from
Oct 26, 2022
Merged

feat: add default stop handler #1572

merged 2 commits into from
Oct 26, 2022

Conversation

csviri
Copy link
Collaborator

@csviri csviri commented Oct 26, 2022

I think we should have here system exit by default.

cc @andreaTP @vmuzikar

@csviri csviri self-assigned this Oct 26, 2022
@csviri csviri requested a review from metacosm October 26, 2022 10:57
@csviri
Copy link
Collaborator Author

csviri commented Oct 26, 2022

have to double check it but stop handler is called now when the informer is stopped explicitly.

@andreaTP
Copy link
Collaborator

when the informer is stopped explicitly

does this happen? Does JOSDK exposes API to stop watching specific resources?

@csviri
Copy link
Collaborator Author

csviri commented Oct 26, 2022

when the informer is stopped explicitly

does this happen? Does JOSDK exposes API to stop watching specific resources?

No, I think just , on s sig term , when we stop the operators, we do a graceful shutdown. Stop is called, that calls the stop handler.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 25 Code Smells

37.0% 37.0% Coverage
0.0% 0.0% Duplication

@csviri csviri merged commit f50727b into next Oct 26, 2022
@csviri csviri deleted the default-stop-handler branch October 26, 2022 14:20
csviri added a commit that referenced this pull request Oct 28, 2022
csviri added a commit that referenced this pull request Oct 31, 2022
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.

4 participants