Skip to content

fix: shut down operator when failing to start #1138

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 8 commits into from
Apr 7, 2022
Merged

fix: shut down operator when failing to start #1138

merged 8 commits into from
Apr 7, 2022

Conversation

metacosm
Copy link
Collaborator

@metacosm metacosm commented Apr 5, 2022

  • fix: start timer as daemon to avoid prolonging the app's life
  • fix: exit operator on exception when starting

@metacosm metacosm self-assigned this Apr 5, 2022
@metacosm metacosm requested a review from csviri April 5, 2022 20:09
@csviri csviri linked an issue Apr 6, 2022 that may be closed by this pull request
@csviri
Copy link
Collaborator

csviri commented Apr 6, 2022

Wondering if we could make an integration test for this.

Copy link
Collaborator

@csviri csviri left a comment

Choose a reason for hiding this comment

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

LGTM

} else {
// extract matching information from URI in the message if available
final var message = exception.getMessage();
final var regex = Pattern.compile(".*http(s?)://[^/]*/api(s?)/(\\S*).*").matcher(message);
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should do something about the related SONAR issue (maybe just no sonar?) or based on the instructions.

@metacosm metacosm changed the title fix: shut dowm operator when failing to start fix: shut down operator when failing to start Apr 7, 2022
@sonarqubecloud
Copy link

sonarqubecloud bot commented Apr 7, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug B 2 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 60 Code Smells

47.3% 47.3% Coverage
0.0% 0.0% Duplication

@metacosm metacosm merged commit 86c9ef3 into v2 Apr 7, 2022
@metacosm metacosm deleted the fix-1136-v2 branch April 7, 2022 08:11
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.

The operator should stay in CrashLoopBackoff if the CRD is not installed
2 participants