Skip SCTP e2e tests on cilium + k8s 1.23

This commit is contained in:
Peter Rifel 2021-09-17 19:30:20 -05:00
parent 6612ba12a5
commit 8d14376708
No known key found for this signature in database
GPG Key ID: BC6469E5B16DB2B6
1 changed files with 7 additions and 7 deletions

View File

@ -49,6 +49,13 @@ func (t *Tester) setSkipRegexFlag() error {
skipRegex += "|external.IP.is.not.assigned.to.a.node"
// https://github.com/cilium/cilium/issues/14287
skipRegex += "|same.port.number.but.different.protocols|same.hostPort.but.different.hostIP.and.protocol"
if strings.HasSuffix(cluster.Spec.KubernetesVersion, "v1.23.0") {
// Reassess after https://github.com/kubernetes/kubernetes/pull/102643 is merged
// ref:
// https://github.com/kubernetes/kubernetes/issues/96717
// https://github.com/cilium/cilium/issues/5719
skipRegex += "|should.create.a.Pod.with.SCTP.HostPort"
}
} else if networking.Calico != nil {
skipRegex += "|Services.*functioning.*NodePort"
} else if networking.Kuberouter != nil {
@ -57,13 +64,6 @@ func (t *Tester) setSkipRegexFlag() error {
skipRegex += "|Services.*affinity"
}
if strings.HasSuffix(cluster.Spec.KubernetesVersion, "v1.23.0-alpha.0") {
// This matches `k8s_version='latest'` in build_jobs.py
// TODO(rifelpet): Remove once the next 1.23 pre-release tag has been created
// ref: https://github.com/kubernetes/kubernetes/pull/104061
skipRegex += "|MetricsGrabber.should.grab.all.metrics.from.a.ControllerManager"
}
// Ensure it is valid regex
if _, err := regexp.Compile(skipRegex); err != nil {
return err