Skip RuntimeClass tests for older Kubernetes versions

This commit is contained in:
Ciprian Hacman 2021-12-19 21:38:52 +02:00
parent bfdb095f28
commit 1e565d8d83
1 changed files with 8 additions and 0 deletions

View File

@ -80,6 +80,14 @@ func (t *Tester) setSkipRegexFlag() error {
skipRegex += "|should.be.mountable.when.non-attachable"
// The in-tree driver and its E2E tests use `topology.kubernetes.io/zone` but the CSI driver uses `topology.gke.io/zone`
skipRegex += "|In-tree.Volumes.\\[Driver:.gcepd\\].*topology.should.provision.a.volume.and.schedule.a.pod.with.AllowedTopologies"
} else if strings.Contains(cluster.Spec.KubernetesVersion, "v1.1") ||
strings.Contains(cluster.Spec.KubernetesVersion, "v1.20.") ||
strings.Contains(cluster.Spec.KubernetesVersion, "v1.21.") ||
strings.Contains(cluster.Spec.KubernetesVersion, "v1.22.") {
// this tests assumes a custom config for containerd:
// https://github.com/kubernetes/test-infra/blob/578d86a7be187214be6ccd60e6ea7317b51aeb15/jobs/e2e_node/containerd/config.toml#L19-L21
// ref: https://github.com/kubernetes/kubernetes/pull/104803
skipRegex += "|RuntimeClass.should.run"
}
if strings.Contains(cluster.Spec.KubernetesVersion, "v1.23.") && cluster.Spec.CloudProvider == "aws" && utils.IsIPv6CIDR(cluster.Spec.NonMasqueradeCIDR) {