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

🐛 Dockerfile: fix constructing URL for kubectl #3308

Merged
merged 1 commit into from
Feb 24, 2025

Conversation

gman0
Copy link
Contributor

@gman0 gman0 commented Feb 24, 2025

Summary

go list -m -json k8s.io/kubernetes | jq -r .Version outputs a version string in format v0.<Minor>.<Patch>, but binaries at dl.k8s.io/release are versioned in line with real K8s versions. This commit replaces the "v0" part with "v1" so that the URL is correct.

Release Notes

NONE

`go list -m -json k8s.io/kubernetes | jq -r .Version` outputs a version
string in format "v0.<Minor>.<Patch>", but binaries at dl.k8s.io/release
are versioned in line with real K8s versions. This commit replaces the "v0"
part with "v1" so that the URL is correct.

On-behalf-of: SAP [email protected]
Signed-off-by: Robert Vasek <[email protected]>
@kcp-ci-bot kcp-ci-bot added release-note-none Denotes a PR that doesn't merit a release note. dco-signoff: yes Indicates the PR's author has signed the DCO. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Feb 24, 2025
@gman0
Copy link
Contributor Author

gman0 commented Feb 24, 2025

https://github.com/kcp-dev/kcp/blob/main/go.mod#L41 actually has v1.31.0. sed will let the string from stdin pass through unchanged if it already starts with v1.

@mjudeikis
Copy link
Contributor

/lgtm
/approve

@kcp-ci-bot kcp-ci-bot added the lgtm Indicates that a PR is ready to be merged. label Feb 24, 2025
@kcp-ci-bot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 84ff488a4d10addd86e960d7ac1aa9392e11b994

@kcp-ci-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mjudeikis

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

@kcp-ci-bot kcp-ci-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 24, 2025
@kcp-ci-bot kcp-ci-bot merged commit 40dd2c0 into kcp-dev:main Feb 24, 2025
13 checks passed
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. dco-signoff: yes Indicates the PR's author has signed the DCO. lgtm Indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. 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.

3 participants