mirror of https://github.com/k3s-io/k3s
Skip ILB e2e test on GCP if cluster size exceeds limit
parent
875a72fed2
commit
8f216be894
|
@ -89,6 +89,10 @@ const (
|
|||
|
||||
// ServiceTestTimeout is used for most polling/waiting activities
|
||||
ServiceTestTimeout = 60 * time.Second
|
||||
|
||||
// GCPMaxInstancesInInstanceGroup is the maximum number of instances supported in
|
||||
// one instance group on GCP.
|
||||
GCPMaxInstancesInInstanceGroup = 2000
|
||||
)
|
||||
|
||||
// This should match whatever the default/configured range is
|
||||
|
|
|
@ -1339,8 +1339,15 @@ var _ = SIGDescribe("Services", func() {
|
|||
|
||||
It("should be able to create an internal type load balancer [Slow]", func() {
|
||||
framework.SkipUnlessProviderIs("azure", "gke", "gce")
|
||||
if framework.ProviderIs("gke", "gce") {
|
||||
framework.SkipUnlessNodeCountIsAtMost(framework.GCPMaxInstancesInInstanceGroup)
|
||||
}
|
||||
|
||||
createTimeout := framework.LoadBalancerCreateTimeoutDefault
|
||||
if nodes := framework.GetReadySchedulableNodesOrDie(cs); len(nodes.Items) > framework.LargeClusterMinNodesNumber {
|
||||
createTimeout = framework.LoadBalancerCreateTimeoutLarge
|
||||
}
|
||||
|
||||
pollInterval := framework.Poll * 10
|
||||
|
||||
namespace := f.Namespace.Name
|
||||
|
|
Loading…
Reference in New Issue