Skip to content

chore: regenerate AutoGomemlimitSpec applyconfiguration comments - #9013

Merged
simonpasquier merged 1 commit into
prometheus-operator:mainfrom
fitzyracing1:try/fix-autogomemlimit-codegen
Nov 23, 2026
Merged

simonpasquier merged 1 commit into
prometheus-operator:mainfrom
fitzyracing1:try/fix-autogomemlimit-codegen

Conversation

@fitzyracing1

Copy link
Copy Markdown
Contributor

Description

The checks workflow on main is dark because make --always-make format generate && git diff --exit-code finds unexpected changes in pkg/client/applyconfiguration/monitoring/v1/autogomemlimitspec.go. After feat: add autoGomemlimit field to the Alertmanager CRD (#8978), make generate inserts three blank comment lines (//) that applyconfiguration-gen wraps in before the Enabled, Ratio, and RefreshInterval fields. Those lines were not committed with the API change, so the Generate and format job fails on every push to main.

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-code is 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 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.

I reproduced the dirty tree with make --always-make format generate on current main (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.

NONE

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]>
@fitzyracing1
fitzyracing1 requested a review from a team as a code owner November 21, 2026 05:17
@simonpasquier
simonpasquier merged commit e8b8b0e into prometheus-operator:main Nov 23, 2026
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.

2 participants