mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 03:11:40 +00:00
fix staticcheck in test/e2e/cloud/
This commit is contained in:
parent
cf16e4988f
commit
c687521b44
@ -45,7 +45,7 @@ var _ = SIGDescribe("[Disruptive]NodeLease", func() {
|
||||
systemPods, err := e2epod.GetPodsInNamespace(c, ns, map[string]string{})
|
||||
framework.ExpectEqual(err, nil)
|
||||
systemPodsNo = int32(len(systemPods))
|
||||
if strings.Index(framework.TestContext.CloudConfig.NodeInstanceGroup, ",") >= 0 {
|
||||
if strings.Contains(framework.TestContext.CloudConfig.NodeInstanceGroup, ",") {
|
||||
framework.Failf("Test dose not support cluster setup with more than one MIG: %s", framework.TestContext.CloudConfig.NodeInstanceGroup)
|
||||
} else {
|
||||
group = framework.TestContext.CloudConfig.NodeInstanceGroup
|
||||
|
@ -54,7 +54,7 @@ var _ = SIGDescribe("Nodes [Disruptive]", func() {
|
||||
systemPods, err := e2epod.GetPodsInNamespace(c, ns, map[string]string{})
|
||||
framework.ExpectNoError(err)
|
||||
systemPodsNo = int32(len(systemPods))
|
||||
if strings.Index(framework.TestContext.CloudConfig.NodeInstanceGroup, ",") >= 0 {
|
||||
if strings.Contains(framework.TestContext.CloudConfig.NodeInstanceGroup, ",") {
|
||||
framework.Failf("Test dose not support cluster setup with more than one MIG: %s", framework.TestContext.CloudConfig.NodeInstanceGroup)
|
||||
} else {
|
||||
group = framework.TestContext.CloudConfig.NodeInstanceGroup
|
||||
|
Loading…
Reference in New Issue
Block a user