Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
test: disable some skew tests for Kubernetes 1.22
Browse files Browse the repository at this point in the history
PMEM-CSI 0.9 lacks the necessary YAML files and the operator doesn't
run (v1beta1 CSIDriver API).
  • Loading branch information
pohly committed Nov 18, 2021
1 parent 44b62cc commit 2126385
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions test/e2e/versionskew/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,14 @@ var _ = deploy.DescribeForSome("versionskew", func(d *deploy.Deployment) bool {
})

It("upgrade [Slow]", func() {
if base == "0.9" {
ver, err := k8sutil.GetKubernetesVersion(f.ClientConfig())
framework.ExpectNoError(err, "get Kubernetes version")
if ver.Compare(1, 22) >= 0 {
Skip("PMEM-CSI operator v0.9.x uses the v1beta1 CSIDriver API which is not enabled in Kubernetes >= 1.22")
}
}

// First remove existing operator deployment
// This is mandatory in case of OLM. Otherwise later downgrade
// step might results in operator upgrade by the OLM.
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/versionskew/versionskew.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const (

func baseSupportsKubernetes(ver version.Version) bool {
switch ver {
case version.NewVersion(1, 21):
case version.NewVersion(1, 21), version.NewVersion(1, 22):
return false
default:
return true
Expand Down

0 comments on commit 2126385

Please sign in to comment.