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

ci/cli: fix migration test with RKE2 #1621

Merged
merged 1 commit into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/cli-full-backup-restore-matrix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ on:
type: boolean
k8s_downstream_version:
description: Rancher cluster downstream version to use
default: '"v1.27.13+k3s1"'
default: '"v1.30.4+k3s1"'
type: string
k8s_upstream_version:
description: Rancher cluster upstream version to use
default: '"v1.27.13+k3s1"'
default: '"v1.30.4+k3s1"'
type: string
qase_run_id:
description: Qase run ID where the results will be reported
Expand Down
5 changes: 5 additions & 0 deletions tests/e2e/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,11 @@ func StartRKE2() {
err = exec.Command("sudo", "systemctl", "enable", "--now", "rke2-server.service").Run()
Expect(err).To(Not(HaveOccurred()))

// Be sure that any previous kubectl command has been removed before linking the new one
err = exec.Command("sudo", "rm", "-f", "/usr/local/bin/kubectl").Run()
Expect(err).To(Not(HaveOccurred()))

// Create kubectl link
err = exec.Command("sudo", "ln", "-s", "/var/lib/rancher/rke2/bin/kubectl", "/usr/local/bin/kubectl").Run()
Expect(err).To(Not(HaveOccurred()))
}
Expand Down
Loading