tests(kubernetes): change k3s container config
@@ -6,6 +6,7 @@ import (
"fmt"
"os"
"testing"
+ "time"
kube "k8s.io/client-go/kubernetes"
@@ -29,7 +30,9 @@ func getKubernetesClientset(t *testing.T) kube.Interface {
func TestMain(m *testing.M) {
var err error
kubernetesContainer, err = gnomock.Start(
- k3s.Preset(k3s.WithVersion("v1.16.15")),
+ k3s.Preset(k3s.WithPort(48448), k3s.WithVersion("v1.16.15")),
+ gnomock.WithContainerName("k3s"),
+ gnomock.WithTimeout(10*time.Minute),
)
if err != nil {
panic(fmt.Sprintf("error creating kubernetes docker instance: %s\n", err))
