Repository navigation
chore: regenerate AutoGomemlimitSpec applyconfiguration comments - #9013
Merged
simonpasquier merged 1 commit intoNov 23, 2026
Merged
simonpasquier merged 1 commit into
simonpasquier merged 1 commit into
Conversation
applyconfiguration-gen inserts a blank comment line before each field on AutoGomemlimitSpecApplyConfiguration, matching the blank lines ahead of the +optional markers on the API type. Those three lines were missing from the file committed with the autoGomemlimit field, so `make --always-make format generate && git diff --exit-code` stayed dirty on main. Signed-off-by: fitzyracing1 <[email protected]>
simonpasquier
approved these changes
Nov 23, 2026
1 of 5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The checks workflow on
mainis dark becausemake --always-make format generate && git diff --exit-codefinds unexpected changes inpkg/client/applyconfiguration/monitoring/v1/autogomemlimitspec.go. Afterfeat: add autoGomemlimit field to the Alertmanager CRD(#8978),make generateinserts three blank comment lines (//) that applyconfiguration-gen wraps in before theEnabled,Ratio, andRefreshIntervalfields. Those lines were not committed with the API change, so the Generate and format job fails on every push tomain.This PR commits the generated comments so the tree matches
make generate. There is no change to runtime behavior.This change was prepared with assistance from an AI coding agent. I reviewed the generated diff and confirmed that
make --always-make format generate && git diff --exit-codeis clean after the commit.If you're contributing for the first-time, check our contribution guidelines.
Type of change
What type of changes does your code introduce to the Prometheus operator? Put an
xin 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.
I reproduced the dirty tree with
make --always-make format generateon currentmain(7ae00f107b4b2d4ff8bd092052a235afeeef374e). After this commit, the same command exits cleanly.The dark upstream run this restores is https://github.com/prometheus-operator/prometheus-operator/actions/runs/44770000557 (Generate and format failed on
main).The same checks workflow is lit on a fork proof run, including Generate and format on ubuntu and macos: https://github.com/fitzyracing1/prometheus-operator/actions/runs/44868288244
Changelog entry
Please put a one-line changelog entry below. This will be copied to the changelog file during the release process.