Unverified Commit fb870adb authored by Derek Nola's avatar Derek Nola Committed by GitHub

Reenable skew test for 1.32/master (#11885)

parent d694dd1d
...@@ -32,20 +32,11 @@ var _ = BeforeSuite(func() { ...@@ -32,20 +32,11 @@ var _ = BeforeSuite(func() {
// For master and unreleased branches, we want the latest stable release // For master and unreleased branches, we want the latest stable release
var upgradeChannel string var upgradeChannel string
var err error var err error
if *channel == "latest" || *channel == "v1.32" { // We want to substract one from the minor version to get the previous release
// disabled: AuthorizeNodeWithSelectors is now on by default, which breaks compat with agents < v1.32. sV, err := semver.ParseTolerant(*channel)
// This can be ren-enabled once the previous branch is v1.32 or higher, or when RBAC changes have been backported. Expect(err).NotTo(HaveOccurred(), "failed to parse version from "+*channel)
// ref: https://github.com/kubernetes/kubernetes/pull/128168 sV.Minor--
Skip("Skipping version skew tests for " + *channel + " due to AuthorizeNodeWithSelectors") upgradeChannel = fmt.Sprintf("v%d.%d", sV.Major, sV.Minor)
upgradeChannel = "stable"
} else {
// We want to substract one from the minor version to get the previous release
sV, err := semver.ParseTolerant(*channel)
Expect(err).NotTo(HaveOccurred(), "failed to parse version from "+*channel)
sV.Minor--
upgradeChannel = fmt.Sprintf("v%d.%d", sV.Major, sV.Minor)
}
lastMinorVersion, err = tester.GetVersionFromChannel(upgradeChannel) lastMinorVersion, err = tester.GetVersionFromChannel(upgradeChannel)
Expect(err).NotTo(HaveOccurred()) Expect(err).NotTo(HaveOccurred())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment