mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #85751 from tanjunchen/fix-staticcheck-test-e2e-auth-cloud
fix staticcheck in test/e2e/cloud/
This commit is contained in:
commit
d49ce6ac42
@ -45,7 +45,7 @@ var _ = SIGDescribe("[Disruptive]NodeLease", 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
|
||||
|
@ -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