Skip to content

Conversation

@thaniri
Copy link
Contributor

@thaniri thaniri commented May 30, 2025

Description

This is for GitHub issue #7494.
Adds startup probe to the config-reloader sidecar for Prometheus pods. Only takes affect if the --enable-config-reloader-probes flag is set on the prometheus-operator pod.

Type of change

What type of changes does your code introduce to the Prometheus operator? Put an x in the box that apply.

  • CHANGE (fix or feature that would cause existing functionality to not work as expected)
  • FEATURE (non-breaking change which adds functionality)
  • BUGFIX (non-breaking change which fixes an issue)
  • ENHANCEMENT (non-breaking change which improves existing functionality)
  • NONE (if none of the other choices apply. Example, tooling, build system, CI, docs, etc.)

Verification

Please check the Prometheus-Operator testing guidelines for recommendations about automated tests.

Unit tests pass. Local build of prometheus-operator in a local kind cluster passes.

Changelog entry

Startup probe added to config-reloader sidecar if --enable-config-reloader-probes set.

Added startup probe to the config-reloader sidecar for Prometheus pods. Only takes affect if the --enable-config-reloader-probes flag is set on the prometheus-operator pod.

@simonpasquier
Copy link
Contributor

Thanks for the submission! Can you also add startup to the CLI help?

fs.BoolVar(&cfg.ReloaderConfig.EnableProbes, "enable-config-reloader-probes", false, "Enable liveness and readiness for the config-reloader container. Default: false")

@thaniri thaniri force-pushed the issue-7494-add-startup-probe-config-reloader branch from 2620601 to f70c5dc Compare June 2, 2025 23:46
@thaniri
Copy link
Contributor Author

thaniri commented Jun 2, 2025

Thanks for the submission! Can you also add startup to the CLI help?

fs.BoolVar(&cfg.ReloaderConfig.EnableProbes, "enable-config-reloader-probes", false, "Enable liveness and readiness for the config-reloader container. Default: false")

Yes @simonpasquier, great catch to make sure that the config flag is documented properly. Apologies for missing that.

simonpasquier
simonpasquier previously approved these changes Jun 3, 2025
Copy link
Contributor

@simonpasquier simonpasquier left a comment

Choose a reason for hiding this comment

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

Thanks!

@simonpasquier
Copy link
Contributor

ah you'll need to regenerate the documentation running make docs.

This is for GitHub issue prometheus-operator#7494.

Adds startup probe to the config-reloader sidecar for Prometheus containers.

Only takes affect if the --enable-config-reloader-probes flag is set on the
prometheus-operator pod for the config-reloader container.
@thaniri thaniri force-pushed the issue-7494-add-startup-probe-config-reloader branch from f70c5dc to adf64aa Compare June 4, 2025 10:10
@thaniri thaniri requested a review from simonpasquier June 4, 2025 10:10
Copy link
Contributor

@simonpasquier simonpasquier left a comment

Choose a reason for hiding this comment

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

Thanks!

@simonpasquier simonpasquier merged commit 9be68ef into prometheus-operator:main Jun 4, 2025
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants