-
Notifications
You must be signed in to change notification settings - Fork 348
Fix the GitVersion reported by Kueue to only contain tag #5370
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
base: main
Are you sure you want to change the base?
Fix the GitVersion reported by Kueue to only contain tag #5370
Conversation
✅ Deploy Preview for kubernetes-sigs-kueue canceled.
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: mbobrovskyi The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
c39ec64
to
9067866
Compare
/hold |
9067866
to
c9967c7
Compare
Do you have an idea of which scenarios we should test? The only one I can think of is when GIT_TAG isn't set. |
@@ -14,7 +14,6 @@ steps: | |||
- kueueviz-image-push | |||
env: | |||
- IMAGE_REGISTRY=us-central1-docker.pkg.dev/k8s-staging-images/kueue | |||
- GIT_TAG=$_GIT_TAG |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After removing GIT_TAG
here, the internal Makefile value from git describe --tags --dirty --always
will be used instead, so it should still work fine. However, the issue is that we'll lose the v20250526
date prefix from the image tag.
$_GIT_TAG includes the date prefix (e.g., v20250526-v0.12.0
), while the Git version alone would be just v0.12.0
. To stay consistent with the current approach, perhaps instead of using GIT_TAG
, we could introduce a separate variable like IMAGE_TAG
or GIT_TAG_EXTENDED
that includes the date prefix.
But if it's acceptable to use only the v0.12.0 image tag, then I think it should work fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What type of PR is this?
/kind bug
What this PR does / why we need it:
Fix the GitVersion reported by Kueue to only contain tag
Which issue(s) this PR fixes:
Fixes #5368
Special notes for your reviewer:
Does this PR introduce a user-facing change?