Skip to content

feat: added runtime validations for PrometheusAgent DaemonSet deployment model#7602

Open
slashexx wants to merge 41 commits intoprometheus-operator:mainfrom
slashexx:slashexx/runtimefallback
Open

feat: added runtime validations for PrometheusAgent DaemonSet deployment model#7602
slashexx wants to merge 41 commits intoprometheus-operator:mainfrom
slashexx:slashexx/runtimefallback

Conversation

@slashexx
Copy link
Member

@slashexx slashexx commented Jun 16, 2025

Description

Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request.
If it fixes a bug or resolves a feature request, be sure to link to that issue.

This PR aims to add runtime validation testcases for PrometheusAgent DaemonSet deployment mode.

Fixes #7601

PR currently blocks issues #7741 and #7724

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.

Changelog entry

Please put a one-line changelog entry below. This will be copied to the changelog file during the release process.

add runtime validation for when PrometheusAgent is run in DaemonSet mode.

Signed-off-by: slashexx <dhruvpuri.35@gmail.com>
@slashexx slashexx force-pushed the slashexx/runtimefallback branch 2 times, most recently from bd3cf82 to 67a0d57 Compare June 27, 2025 07:44
slashexx added 2 commits June 29, 2025 19:22
Signed-off-by: slashexx <dhruvpuri.35@gmail.com>
Signed-off-by: slashexx <dhruvpuri.35@gmail.com>
@slashexx slashexx force-pushed the slashexx/runtimefallback branch from b9e6fd2 to fc49d9a Compare June 29, 2025 18:41
Copy link
Contributor

@mviswanathsai mviswanathsai left a comment

Choose a reason for hiding this comment

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

A few changes. You will also need to run make --always-make format generate

slashexx and others added 3 commits July 3, 2025 17:35
Co-authored-by: M Viswanath Sai <110663831+mviswanathsai@users.noreply.github.com>
Co-authored-by: M Viswanath Sai <110663831+mviswanathsai@users.noreply.github.com>
Co-authored-by: M Viswanath Sai <110663831+mviswanathsai@users.noreply.github.com>
@slashexx slashexx force-pushed the slashexx/runtimefallback branch from 4a277d3 to 79e8e65 Compare July 3, 2025 19:23
Signed-off-by: slashexx <dhruvpuri.35@gmail.com>
@slashexx slashexx force-pushed the slashexx/runtimefallback branch from 79e8e65 to f1bd9a8 Compare July 3, 2025 19:24
@slashexx
Copy link
Member Author

slashexx commented Jul 4, 2025

Hi @mviswanathsai , this PR is still a bit WIP.

I added the boilerplate tests last night have yet to work on it and make this better.

I'll take a final look at this and then make the requested changes.

Signed-off-by: slashexx <dhruvpuri.35@gmail.com>
@slashexx slashexx force-pushed the slashexx/runtimefallback branch from 55b0d2d to 278a625 Compare July 4, 2025 10:32
slashexx added 2 commits July 4, 2025 16:04
Signed-off-by: slashexx <dhruvpuri.35@gmail.com>
Signed-off-by: slashexx <dhruvpuri.35@gmail.com>
@slashexx slashexx force-pushed the slashexx/runtimefallback branch from b13d0ce to 1b94076 Compare July 4, 2025 10:52
Signed-off-by: slashexx <dhruvpuri.35@gmail.com>
@slashexx slashexx force-pushed the slashexx/runtimefallback branch from 2972fa0 to 95f329a Compare July 7, 2025 20:10
@slashpai
Copy link
Contributor

The tests are failing. Change wise looks good may be need to update tests

Copy link
Contributor

@mviswanathsai mviswanathsai left a comment

Choose a reason for hiding this comment

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

A few nits.

@mviswanathsai
Copy link
Contributor

I am sorry about all the back and forth with this PR.

We need to finalize and make the list of forbidden fields in this PR. Then we must make sure to make it clear in the proposal.
We can then move on with PRs for adding CEL rules.

Signed-off-by: slashexx <dhruvpuri.35@gmail.com>
Copy link
Contributor

@mviswanathsai mviswanathsai left a comment

Choose a reason for hiding this comment

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

Just one comment. Looks good to me otherwise.

CC: @slashpai

@slashexx
Copy link
Member Author

@mviswanathsai @slashpai apologies for the delay, all comments have been addressed !

mviswanathsai
mviswanathsai previously approved these changes Nov 2, 2025
Copy link
Contributor

@mviswanathsai mviswanathsai left a comment

Choose a reason for hiding this comment

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

LGTM

@github-actions github-actions bot added the stale label Jan 2, 2026
@slashexx
Copy link
Member Author

slashexx commented Jan 2, 2026

@slashpai it's been a long while, this skipped my mind 😢

@github-actions github-actions bot removed the stale label Jan 3, 2026
Co-authored-by: Jayapriya Pai <slashpai9@gmail.com>
@slashpai
Copy link
Contributor

slashpai commented Jan 7, 2026

need to fix unit tests per the update too :)

@slashexx
Copy link
Member Author

slashexx commented Jan 7, 2026

oh they failed :(

On it !

Signed-off-by: Dhruv <136118444+slashexx@users.noreply.github.com>
@slashexx
Copy link
Member Author

slashexx commented Jan 7, 2026

@slashpai we're done !

@slashexx
Copy link
Member Author

slashexx commented Jan 8, 2026

@slashpai ptal :)

@slashexx
Copy link
Member Author

@slashpai I think this should be gtg now

@slashexx
Copy link
Member Author

@slashpai @simonpasquier

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

Add runtime fallback mechanisms in the PrometheusAgent DaemonSet controller

3 participants