e2e: Satisfy golangci for controller-manager test
@@ -5,13 +5,13 @@ package kubernetes
import (
"testing"
- "time"
testutil "github.com/kinvolk/lokoctl/test/components/util"
)
func TestControllerManagerDeployment(t *testing.T) {
t.Parallel()
+
namespace := "kube-system"
deployment := "kube-controller-manager"
replicas := 2
@@ -20,7 +20,8 @@ func TestControllerManagerDeployment(t *testing.T) {
if err != nil {
t.Errorf("could not create Kubernetes client: %v", err)
}
+
t.Log("got kubernetes client")
- testutil.WaitForDeployment(t, client, namespace, deployment, replicas, time.Second*5, time.Minute*5)
+ testutil.WaitForDeployment(t, client, namespace, deployment, replicas, retryInterval, timeout)
}
