Skip to content

Conversation

@narqo
Copy link
Contributor

@narqo narqo commented Nov 10, 2025

What this PR does

As originally suggested in 97c4ae8 the PR updates the Helm chart to default the container image's tag to the value of chart's AppVersion. This will make managing the future releases simpler, because the release manager won't need to bother updating the values.

Note, in the follow-up PR I will update the CI job that updates the weekly releases (ref. to the comment)

Checklist

  • Tests updated.
  • Documentation added.
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]. If changelog entry is not needed, please add the changelog-not-needed label to the PR.
  • about-versioning.md updated with experimental features.

Note

Default container image tag to chart AppVersion with override via values; bump appVersion and update docs/changelog.

  • Helm chart:
    • Image tag resolution: templates/_helpers.tpl mimir.imageReference now defaults tag to .Chart.AppVersion when unspecified; precedence defined: component tag → global image.tag → chart appVersion.
    • Values/docs: Remove hardcoded global image.tag; add guidance/examples for overriding tags across components; minor comment fixes.
    • Metadata: Bump appVersion to r368-547a06a0 in Chart.yaml and update README badge.
    • Changelog: Add enhancement entry documenting new default image tag behavior.

Written by Cursor Bugbot for commit 33f6d12. This will update automatically on new commits. Configure here.

Co-authored-by: Niklas Wagner <[email protected]>
Signed-off-by: Vladimir Varankin <[email protected]>
@narqo narqo requested a review from a team as a code owner November 10, 2025 13:57
Signed-off-by: Vladimir Varankin <[email protected]>
Signed-off-by: Vladimir Varankin <[email protected]>
{{- $image := $componentSection.image | default dict -}}
{{- $image = mustMerge $image .ctx.Values.image -}}
{{ $image.repository }}:{{ $image.tag }}
{{ $image.repository }}:{{ $image.tag | default .ctx.Chart.AppVersion }}
Copy link

Choose a reason for hiding this comment

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

Bug: Image Config Precedence Inverted

The mustMerge call in mimir.imageReference merges component image config with global image config in the wrong order, causing global settings to override component-specific ones. This contradicts the documented precedence where component tags should take priority over global tags. The arguments to mustMerge should be swapped to mustMerge .ctx.Values.image $componentSection.image so component values override global values.

Fix in Cursor Fix in Web

Copy link
Contributor Author

@narqo narqo Nov 10, 2025

Choose a reason for hiding this comment

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

I think, this comment is wrong (we have tests for this behaviour). The Helm's docs say this:

Merge two or more dictionaries into one, giving precedence to the dest dictionary

Copy link
Contributor

@tacole02 tacole02 left a comment

Choose a reason for hiding this comment

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

Changelog LGTM

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.

2 participants