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: compute the image tag within the script #1393

Closed
wants to merge 1 commit into from

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

Compute the tag within the script

Signed-off-by: murphp15 murphp15@tcd.ie

Signed-off-by: murphp15 <murphp15@tcd.ie>
@antoniivanov
Copy link
Collaborator

antoniivanov commented Dec 2, 2022

What makes you think it's a shell issue?
Shell being so mature and stable seems unlikely to have such a strange behavior even across versions, not for something so basic. Though it happens.
...

I think the bug may be in the helm pack plugin

We use helm pack plugin because helm package doesn't support passing values (like image.tag) - helm/helm#3141

But looking at the helm pack code -https://github.com/thynquest/helm-pack/blob/master/cmd/helmpack/pack.go
It's possible that type inference is lost when passing the arguments.

@murphp15 murphp15 closed this Dec 2, 2022
@antoniivanov antoniivanov deleted the person/murphp15/load_tag_in_script branch September 14, 2023 18:46
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.

None yet

3 participants