diff --git a/tests/e2e/pkg/tester/skip_regex.go b/tests/e2e/pkg/tester/skip_regex.go index 154527a51a..039bebdc5b 100644 --- a/tests/e2e/pkg/tester/skip_regex.go +++ b/tests/e2e/pkg/tester/skip_regex.go @@ -19,6 +19,8 @@ package tester import ( "regexp" "strings" + + "k8s.io/kops/upup/pkg/fi/utils" ) const ( @@ -76,6 +78,12 @@ func (t *Tester) setSkipRegexFlag() error { skipRegex += "|should.be.mountable.when.non-attachable" } + if cluster.Spec.CloudProvider == "aws" && utils.IsIPv6CIDR(cluster.Spec.NonMasqueradeCIDR) { + // AWS VPC Classic ELBs are IPv4 only + // ref: https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-internet-facing-load-balancers.html#internet-facing-ip-addresses + skipRegex += "|should.not.disrupt.a.cloud.load-balancer.s.connectivity.during.rollout" + } + // Ensure it is valid regex if _, err := regexp.Compile(skipRegex); err != nil { return err