Skip to content

Validate that installed release has desired state - #337

Merged
brandond merged 2 commits into
k3s-io:masterfrom
brandond:release-hash-check
Jul 15, 2026
Merged

Validate that installed release has desired state#337
brandond merged 2 commits into
k3s-io:masterfrom
brandond:release-hash-check

Conversation

@brandond

@brandond brandond commented Jul 15, 2026

Copy link
Copy Markdown
Member

Inject config hash into release labels, and validate that the installed release has the correct hash. If the job is complete but the hash does not match, the job needs to be recreated.

Fixes an issue where unexpected releases created after the job was created could leave the chart stuck without updating. The expected-revision check in the job image would correctly prevent the chart from being updated in conflict, but the controller would not trigger an update to the job to apply the change, because it did not have any way to detect that the installed release is out of sync with the desired state.

The chart controller now checks the latest release once the job is complete. If the release is deployed but does not have the expected hash, the job is recreated.

Needs:

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
@brandond
brandond force-pushed the release-hash-check branch 7 times, most recently from 8b916c1 to a077c1f Compare July 15, 2026 20:01
Inject config hash into release labels, and validate that the installed release has the correct hash. If the job is complete but the hash does not match, the job needs to be recreated.

This also updates the hash to cover the job spec.template, so that changes to job configuration or spec.set values modify the hash to trigger a new release.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
@brandond
brandond force-pushed the release-hash-check branch from a077c1f to bb56c3b Compare July 15, 2026 20:19
@brandond
brandond merged commit e060287 into k3s-io:master Jul 15, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants