Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: helm chart supports digest and tag for container image #278

Conversation

salasberryfin
Copy link
Contributor

@salasberryfin salasberryfin commented Nov 23, 2023

What this PR does / why we need it:

This change adapts chart templates and chart creation to support both digests and tags for controller image version.

A new variable CONTROLLER_IMAGE_VERSION is added to keep track of the image version and RELEASE_TAG will now only be used for chart versioning. CONTROLLER_IMAGE_VERSION will default to latest tag if not explicitly specified when creating a new chart release. Since digests and tags use different separators (@ vs :) between image and version, template deployment.yaml implements a condition to use the correct image based on the format of the version.

In addition, it modifies the release GitHub Action to create the Helm chart using the digest for the multiarch image (only for prod).

Which issue(s) this PR fixes:
Fixes #215

Special notes for your reviewer:
Pending reviewing release workflow.

Checklist:

  • squashed commits into logical changes
  • includes documentation
  • adds unit tests
  • adds or updates e2e tests

@salasberryfin salasberryfin requested a review from a team as a code owner November 23, 2023 10:48
@salasberryfin salasberryfin force-pushed the chart-support-digest-and-tag-for-image branch 12 times, most recently from 6351c55 to 18b9087 Compare November 23, 2023 18:21
Signed-off-by: Carlos Salas <carlos.salas@suse.com>
@salasberryfin salasberryfin force-pushed the chart-support-digest-and-tag-for-image branch from 18b9087 to bf19349 Compare November 23, 2023 18:37
@salasberryfin salasberryfin changed the title WIP: feat: helm chart supports digest and tag for container image feat: helm chart supports digest and tag for container image Nov 23, 2023
@richardcase richardcase merged commit 9985847 into rancher:main Dec 4, 2023
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Release] Helm chart should use tag & digest
3 participants