mirror of https://github.com/kubernetes/kops.git
Skip load balancer test in IPv6 clusters
This commit is contained in:
parent
0acebafc9a
commit
eeda5f927d
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue