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 getting version from tarball #3715

Merged
merged 1 commit into from
Aug 16, 2024

Conversation

BenTheElder
Copy link
Member

@BenTheElder BenTheElder commented Aug 16, 2024

the docker tags are mangled, and the tarball has the version file matching what we'd get from a local source build

fixes #3714

cc @dims @aojea @stmcginnis

the docker tags are mangled
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Aug 16, 2024
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Aug 16, 2024
@BenTheElder
Copy link
Member Author

For release builds, there's no additional metadata, so the docker tag and version file are the same.

The version file represents the binary version, what you'd get from kubectl version etc.
The docker tag file represents the mangled form that isn't quite semver because of docker tag character-set limitations.

@aojea
Copy link
Contributor

aojea commented Aug 16, 2024

I can see both are the same

$ more kubernetes/server/bin/kube-apiserver.docker_tag
v1.32.0-alpha.0.156_983875b2f5bf64
aojea@aojea:~/src/tmp$ more kubernetes/version
v1.32.0-alpha.0.156+983875b2f5bf64

the version seems more correct though

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 16, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: BenTheElder, stmcginnis

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@stmcginnis
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot merged commit 05e4519 into kubernetes-sigs:main Aug 16, 2024
29 checks passed
@BenTheElder BenTheElder deleted the fix-version branch August 16, 2024 19:32
@BenTheElder
Copy link
Member Author

The + is valid semver while _ is not, which is why we only use the _ for the image tags in Kubernetes, it doesn't parse.

@aojea
Copy link
Contributor

aojea commented Aug 17, 2024

The + is valid semver while _ is not, which is why we only use the _ for the image tags in Kubernetes, it doesn't parse.

Missed that details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

new builder modes don't work with pre-release tags
4 participants