Skip to content

cmd: introduce command for bumping modules in controller repos#1116

Merged
matheuscscp merged 1 commit intomainfrom
cmd-bump
Feb 15, 2026
Merged

cmd: introduce command for bumping modules in controller repos#1116
matheuscscp merged 1 commit intomainfrom
cmd-bump

Conversation

@matheuscscp
Copy link
Copy Markdown
Member

@matheuscscp matheuscscp commented Feb 14, 2026

Automatically bumps fluxcd/pkg dependencies in a controller (or flux2) repository:

  1. Detects the target repo's branch and controller name.
  2. Maps them to the correct fluxcd/pkg branch using a baseline version table.
  3. Clones pkg in-memory to find the latest module tags reachable from that branch.
  4. Updates go.mod accordingly.

I tested this command locally in the PR fluxcd/notification-controller#1238

The command has a temporary workaround for Flux 2.8 due to the fact that we branched here before releasing 2.8. This workaround will make our lives easier in the next 2 weeks. After that, we should remove this workaround and 2.8 patches will work as intended without workarounds.

@matheuscscp matheuscscp requested a review from a team as a code owner February 14, 2026 01:49
@matheuscscp matheuscscp added the area/ci CI related issues and pull requests label Feb 14, 2026
Comment thread cmd/internal/bump_deps.go Fixed
Comment thread cmd/internal/bump_deps.go Outdated
Signed-off-by: Matheus Pimenta <matheuscscp@gmail.com>
Copy link
Copy Markdown
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

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

LGTM

@matheuscscp matheuscscp merged commit 52bc1ed into main Feb 15, 2026
14 checks passed
@matheuscscp matheuscscp deleted the cmd-bump branch February 15, 2026 08:19
@matheuscscp matheuscscp added the backport:flux/v2.8.x To be backported to flux/v2.8.x label Feb 15, 2026
@fluxcdbot
Copy link
Copy Markdown
Member

Successfully created backport PR for flux/v2.8.x:

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

Labels

area/ci CI related issues and pull requests backport:flux/v2.8.x To be backported to flux/v2.8.x

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants