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

k8s-1.33: Update url to check previous k8s version #1396

Merged
merged 1 commit into from
Mar 13, 2025

Conversation

brianmcarey
Copy link
Member

What this PR does / why we need it:

The old URL used to check the previous kubernetes version no longer exists for versions greater than v1.31 - this is causing the provisioning of the k8s-1.33 provider to fail[1]

Update to get the version from the kubevirtci repo itself.

[1] https://prow.ci.kubevirt.io/view/gs/kubevirt-prow/pr-logs/pull/kubevirt_project-infra/4010/rehearsal-check-provision-k8s-1.33/1899779863519170560#1:build-log.txt%3A166

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Special notes for your reviewer:

/cc @dhiller

Checklist

This checklist is not enforcing, but it's a reminder of items that could be relevant to every PR.
Approvers are expected to review this list.

Release note:


@kubevirt-bot kubevirt-bot requested a review from dhiller March 13, 2025 09:14
@kubevirt-bot kubevirt-bot added the dco-signoff: yes Indicates the PR's author has DCO signed all their commits. label Mar 13, 2025
@dosubot dosubot bot added the kind/bug label Mar 13, 2025
@@ -13,7 +13,7 @@ function getKubernetesClosestStableVersion() {
kubernetes_minor_version=$(echo $kubernetes_version | cut -d. -f2)
packages_major_version=$(echo $kubernetes_version | cut -d. -f1)
packages_minor_version=$((kubernetes_minor_version-1))
packages_version="$(curl --fail -L "https://storage.googleapis.com/kubernetes-release/release/stable-${packages_major_version}.${packages_minor_version}.txt" | sed 's/^v//')"
packages_version="$(curl --fail -L "https://raw.githubusercontent.com/kubevirt/kubevirtci/refs/heads/main/cluster-provision/k8s/1.${packages_minor_version}/version")"
Copy link
Contributor

Choose a reason for hiding this comment

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

I am not sure whether we should use ourselves as a source of truth around k8s release versions - is there no other way to determine the latest stable k8s version from any kubernetes release resource?

Copy link
Member Author

Choose a reason for hiding this comment

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

I thought this would be a good solution as that is the latest known good version that we are testing with for the previous provider.

I wouldn't consider it a source of truth - in this case we just need some recent version to install the rpms - the binaries get replaced later anyway.

Copy link
Member Author

Choose a reason for hiding this comment

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

I think I have found a better option.

The old URL used to check the previous kubernetes version no longer
exists for versions greater than v1.31 - this is causing the
provisioning of the k8s-1.33 provider to fail[1]

Update to get the version from the kubevirtci repo itself.

[1] https://prow.ci.kubevirt.io/view/gs/kubevirt-prow/pr-logs/pull/kubevirt_project-infra/4010/rehearsal-check-provision-k8s-1.33/1899779863519170560#1:build-log.txt%3A166

Signed-off-by: Brian Carey <[email protected]>
@brianmcarey brianmcarey force-pushed the fix-previous-version-check branch from 599ae08 to 8f6490e Compare March 13, 2025 09:46
Copy link
Contributor

@dhiller dhiller left a comment

Choose a reason for hiding this comment

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

/approve

Thank you @brianmcarey !

@kubevirt-bot kubevirt-bot added the lgtm Indicates that a PR is ready to be merged. label Mar 13, 2025
@kubevirt-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dhiller

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

@kubevirt-bot kubevirt-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 13, 2025
@kubevirt-bot kubevirt-bot merged commit cb8dee6 into kubevirt:main Mar 13, 2025
11 checks passed
kubevirt-bot added a commit to kubevirt-bot/kubevirt that referenced this pull request Mar 15, 2025
[fe4dac8 Run go run ./robots/cmd/kubevirtci-bumper -ensure-last-three-minor-of v1 --k8s-provider-dir /home/prow/go/src/github.com/kubevirt/project-infra/../kubevirtci/cluster-provision/k8s](kubevirt/kubevirtci#1394)
[cb8dee6 k8s-1.33: Update url to check previous k8s version](kubevirt/kubevirtci#1396)
[60517a0 k8s-1.33: Add new provider for Kubernetes version 1.33](kubevirt/kubevirtci#1392)

```release-note
NONE
```

Signed-off-by: kubevirt-bot <[email protected]>
kubevirt-bot added a commit to kubevirt-bot/kubevirt that referenced this pull request Mar 16, 2025
[fe4dac8 Run go run ./robots/cmd/kubevirtci-bumper -ensure-last-three-minor-of v1 --k8s-provider-dir /home/prow/go/src/github.com/kubevirt/project-infra/../kubevirtci/cluster-provision/k8s](kubevirt/kubevirtci#1394)
[cb8dee6 k8s-1.33: Update url to check previous k8s version](kubevirt/kubevirtci#1396)
[60517a0 k8s-1.33: Add new provider for Kubernetes version 1.33](kubevirt/kubevirtci#1392)

```release-note
NONE
```

Signed-off-by: kubevirt-bot <[email protected]>
kubevirt-bot added a commit to kubevirt-bot/kubevirt that referenced this pull request Mar 16, 2025
[fe4dac8 Run go run ./robots/cmd/kubevirtci-bumper -ensure-last-three-minor-of v1 --k8s-provider-dir /home/prow/go/src/github.com/kubevirt/project-infra/../kubevirtci/cluster-provision/k8s](kubevirt/kubevirtci#1394)
[cb8dee6 k8s-1.33: Update url to check previous k8s version](kubevirt/kubevirtci#1396)
[60517a0 k8s-1.33: Add new provider for Kubernetes version 1.33](kubevirt/kubevirtci#1392)

```release-note
NONE
```

Signed-off-by: kubevirt-bot <[email protected]>
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 DCO signed all their commits. kind/bug lgtm Indicates that a PR is ready to be merged. size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants