Skip to content

Split pkg/helmvalues into its own Go module#5396

Open
0xavi0 wants to merge 1 commit into
rancher:mainfrom
0xavi0:helmvalues-module
Open

Split pkg/helmvalues into its own Go module#5396
0xavi0 wants to merge 1 commit into
rancher:mainfrom
0xavi0:helmvalues-module

Conversation

@0xavi0

@0xavi0 0xavi0 commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Promote pkg/helmvalues to a standalone module (like pkg/apis) so it can be released and consumed independently by rancher/rancher.

Also adds check-module-tag-sync.sh + workflow to verify pkg/apis and pkg/helmvalues are tagged in lockstep (same version, same commit)

Additional Information

Checklist

- [ ] I have updated the documentation via a pull request in the fleet-product-docs repository.

Promote pkg/helmvalues to a standalone module (like pkg/apis) so it can
be released and consumed independently by rancher/rancher.

Also adds check-module-tag-sync.sh + workflow to verify pkg/apis and
pkg/helmvalues are tagged in lockstep (same version, same commit)

Signed-off-by: Xavi Garcia <xavi.garcia@suse.com>
@0xavi0 0xavi0 added this to the v2.16.0 milestone Jul 3, 2026
@0xavi0 0xavi0 self-assigned this Jul 3, 2026
@0xavi0 0xavi0 added this to Fleet Jul 3, 2026
@0xavi0 0xavi0 marked this pull request as ready for review July 3, 2026 14:20
@0xavi0 0xavi0 requested a review from a team as a code owner July 3, 2026 14:20
Copilot AI review requested due to automatic review settings July 3, 2026 14:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR promotes pkg/helmvalues into its own standalone Go module (similar to pkg/apis) so it can be versioned and consumed independently (e.g., by rancher/rancher). It also adds automation to ensure pkg/apis and pkg/helmvalues are tagged/released in lockstep.

Changes:

  • Introduces a new Go module under pkg/helmvalues/ (go.mod + go.sum) and wires it into the root module via replace/require.
  • Adds a new workflow + script to verify pkg/apis and pkg/helmvalues tags are synchronized (same version and commit, and matching inter-module requirement).
  • Updates CI and release tooling to test/bump the new pkg/helmvalues module.

Reviewed changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
pkg/helmvalues/go.mod Adds a standalone module definition for pkg/helmvalues.
pkg/helmvalues/go.sum Adds dependency checksums for the new pkg/helmvalues module.
go.mod Adds replace + require entries so the root module can reference the new submodule.
.github/workflows/ci.yml Adds a dedicated unit-test step for the pkg/helmvalues module.
.github/workflows/release-against-rancher.yml Extends pre-flight tag/version guards to cover pkg/helmvalues.
.github/scripts/release-against-rancher.sh Updates the bump logic to optionally bump pkg/helmvalues in rancher/rancher when tagged.
.github/scripts/check-module-tag-sync.sh Adds a script to validate pkg/apis + pkg/helmvalues tag/commit/version lockstep.
.github/workflows/check-module-tags.yml Adds a workflow to run the tag-sync validation on tag push / manual trigger.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pkg/helmvalues/go.mod
@0xavi0 0xavi0 marked this pull request as draft July 3, 2026 14:24
@0xavi0 0xavi0 marked this pull request as ready for review July 3, 2026 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants