@@ -19,7 +19,9 @@ import (
1919 "github.com/k3s-io/k3s/pkg/etcd"
2020 testutil "github.com/k3s-io/k3s/tests"
2121 "github.com/k3s-io/k3s/tests/mock"
22+ "github.com/k3s-io/kine/pkg/endpoint"
2223 pkgerrors "github.com/pkg/errors"
24+ etcdversion "go.etcd.io/etcd/api/v3/version"
2325 utilnet "k8s.io/apimachinery/pkg/util/net"
2426 "k8s.io/apiserver/pkg/authentication/authenticator"
2527 "k8s.io/apiserver/pkg/authentication/request/anonymous"
@@ -183,6 +185,15 @@ func mockControl(ctx context.Context, t *testing.T, clusterInit bool) (*config.C
183185 ServerNodeName : "k3s-server-1" ,
184186 ServiceNodePortRange : & utilnet.PortRange {Base : 30000 , Size : 2048 },
185187 Token : "token" ,
188+ Datastore : endpoint.Config {
189+ CompactBatchSize : 1000 ,
190+ CompactInterval : 5 * time .Minute ,
191+ CompactMinRetain : 1000 ,
192+ CompactTimeout : 5 * time .Second ,
193+ EmulatedETCDVersion : etcdversion .Version ,
194+ NotifyInterval : 5 * time .Second ,
195+ PollBatchSize : 500 ,
196+ },
186197 }
187198
188199 if err := os .Chdir (control .DataDir ); err != nil {
0 commit comments