Skip to content

Commit

Permalink
ci/cli: fix migration test with RKE2
Browse files Browse the repository at this point in the history
Signed-off-by: Loic Devulder <[email protected]>
  • Loading branch information
ldevulder committed Oct 9, 2024
1 parent 90e615b commit 3ae9fcb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
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

0 comments on commit 3ae9fcb

Please sign in to comment.