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

control-service: release helm chart with correct image tag #1383

Merged
merged 3 commits into from
Dec 1, 2022

Conversation

murphp15
Copy link
Collaborator

@murphp15 murphp15 commented Dec 1, 2022

Why

I am seeing an issue where helm charts are being released and they point to a pipelines-control-service image that doesn't exist because they have dropped some numbers from the git hash id.

The bug can be seen here: https://gitlab.com/vmware-analytics/versatile-data-kit/-/jobs/3408315682
the image it creates doesn’t have the full commit id.
if you search for image.tag= in the logs you can see that it set the commit to something shorter than the commit id

I also think that adding the quotes when declaring the variable might fix this: #1252

I did test locally but am not able to reproduce either issue locally and I think it is related to the shell version they are using on gitlab.

What

Add quotes around the commit id and log the commit id at the start of the called script to make sure it is passed in correctly.

Signed-off-by: murphp15 [email protected]

Copy link
Collaborator

@antoniivanov antoniivanov left a comment

Choose a reason for hiding this comment

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

I don't see how this would help to be honest. Git hash is alphanumerical and alphanumerical characters are not treated in any special way in shell (https://www.gnu.org/software/bash/manual/html_node/Double-Quotes.html)

But doesn't hurt to try. The echo could be useful.

@murphp15 murphp15 enabled auto-merge (squash) December 1, 2022 14:19
@murphp15 murphp15 merged commit 8d765d2 into main Dec 1, 2022
@murphp15 murphp15 deleted the person/murphp15/debug_image_tag branch December 1, 2022 14:37
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.

5 participants