Skip to content

Commit 899b754

Browse files
committed
Add WithWaitDuration ClusterOpts function
1 parent 65f31fb commit 899b754

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

third_party/kwok/kwok.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,15 @@ func WithPath(path string) support.ClusterOpts {
6464
}
6565
}
6666

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+
6776
func (k *Cluster) findOrInstallKwokCtl() error {
6877
if k.version != "" {
6978
kwokVersion = k.version

0 commit comments

Comments
 (0)