File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,8 @@ import (
23
23
type Cluster = tptkwok.Cluster
24
24
25
25
var (
26
- NewCluster = tptkwok .NewCluster
27
- NewProvider = tptkwok .NewProvider
28
- WithPath = tptkwok .WithPath
26
+ NewCluster = tptkwok .NewCluster
27
+ NewProvider = tptkwok .NewProvider
28
+ WithPath = tptkwok .WithPath
29
+ WithWaitDuration = tptkwok .WithWaitDuration
29
30
)
Original file line number Diff line number Diff line change @@ -64,6 +64,15 @@ func WithPath(path string) support.ClusterOpts {
64
64
}
65
65
}
66
66
67
+ func WithWaitDuration (waitDuration time.Duration ) support.ClusterOpts {
68
+ return func (c support.E2EClusterProvider ) {
69
+ k , ok := c .(* Cluster )
70
+ if ok {
71
+ k .waitDuration = waitDuration
72
+ }
73
+ }
74
+ }
75
+
67
76
func (k * Cluster ) findOrInstallKwokCtl () error {
68
77
if k .version != "" {
69
78
kwokVersion = k .version
You can’t perform that action at this time.
0 commit comments