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

Allow disabling health extension with configuration #42361

Merged
merged 1 commit into from
Aug 8, 2024

Conversation

xstefank
Copy link
Member

@xstefank xstefank commented Aug 7, 2024

Fixes #42356

@xstefank
Copy link
Member Author

xstefank commented Aug 7, 2024

Also, it will probably supersede #38623 if @metacosm agrees.

This comment has been minimized.

Copy link
Member

@gsmet gsmet left a comment

Choose a reason for hiding this comment

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

Please see my comment inline.

* Activate or disable this extension. Disabling this extension means that no health related information is exposed.
*/
@ConfigItem(name = "active", defaultValue = "true")
public boolean active;
Copy link
Member

Choose a reason for hiding this comment

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

If you disable the extension entirely, please use enabled, not active.

Also don't define a name, the convention will make it right.

See this issue for the overall context: #42244

@xstefank xstefank force-pushed the disable-health-i42356 branch from d7a842c to 71f02d7 Compare August 8, 2024 08:31
@xstefank
Copy link
Member Author

xstefank commented Aug 8, 2024

@gsmet fixed. I also aligned that it will always produce the feature so it will be displayed on startup to align with hibernate.

Copy link

quarkus-bot bot commented Aug 8, 2024

Status for workflow Quarkus CI

This is the status report for running Quarkus CI on commit 71f02d7.

✅ The latest workflow run for the pull request has completed successfully.

It should be safe to merge provided you have a look at the other checks in the summary.

You can consult the Develocity build scans.

Copy link
Member

@gsmet gsmet left a comment

Choose a reason for hiding this comment

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

Perfect, thanks.

I will merge it as soon as CI is green as I need to make changes in this class.

@gsmet gsmet merged commit 937a078 into quarkusio:main Aug 8, 2024
37 checks passed
@quarkus-bot quarkus-bot bot added the kind/enhancement New feature or request label Aug 8, 2024
@quarkus-bot quarkus-bot bot added this to the 3.14 - main milestone Aug 8, 2024
@xstefank xstefank deleted the disable-health-i42356 branch August 8, 2024 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Don't expose health probes with configuration
2 participants