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

fix: prepend v to .Chart.AppVersion for image #99

Merged
merged 1 commit into from
Feb 4, 2024

Conversation

kanya-approve
Copy link
Contributor

@kanya-approve kanya-approve commented Oct 12, 2023

What?

This is supposed to resolve #96. This will prepend v to the image.

Why?

Helm deployment fails because the "ghcr.io/siderolabs/talos-cloud-controller-manager:1.4.0" image does not exist.

Acceptance

  • you linked an issue (if applicable)
  • you included tests (if applicable)
  • you ran conformance (make conformance)
  • you linted your code (make lint)
  • you linted your code (make unit)

@sergelogvinov
Copy link
Collaborator

Thank you for your PR.
I believe it was human error, than I did release procedure.
I think the bast way to solve it in future to add test in github actions .github/workflows/release-pre.yaml.

make docs - knows the release TAG, and it can check the version in Chart.yaml file.

@kanya-approve
Copy link
Contributor Author

What else should I add?

@sergelogvinov
Copy link
Collaborator

What else should I add?

how about this yq -i '.appVersion = "v1.2.3"' charts/talos-cloud-controller-manager/Chart.yaml

It will replace latest tag in Chart.yaml, if we set right version - the Chart.yaml would not change.
here .github/workflows/release-pre.yaml we have 'Check' step -> git diff --exit-code

@kanya-approve
Copy link
Contributor Author

Are you ok with the chart version reflecting as v{ACTUAL_VERSION} vs. ACTUAL_VERSION

@sergelogvinov
Copy link
Collaborator

Are you ok with the chart version reflecting as v{ACTUAL_VERSION} vs. ACTUAL_VERSION

Hello, git tag already have v prefix, so I believe the best way to fix this typo is to check proper string in helm.appVersion.
Otherwise, we did not fix like this typo in the future... (appVersion == git-tag)

What do you think?

@sergelogvinov
Copy link
Collaborator

/m

@sergelogvinov
Copy link
Collaborator

/m

@sergelogvinov
Copy link
Collaborator

@kanya-approve Thank you.

Resolves siderolabs#96

Co-authored-by: Brian Kanya <[email protected]>
Signed-off-by: Serge Logvinov <[email protected]>
@sergelogvinov
Copy link
Collaborator

/m

@talos-bot talos-bot merged commit 3c9d805 into siderolabs:main Feb 4, 2024
3 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.

Image tag incorrect when deploying through helm
3 participants