File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -349,6 +349,8 @@ var _ = Describe("runnableGroup", func() {
349
349
})
350
350
})
351
351
352
+ var _ LeaderElectionRunnable = & leaderElectionRunnableFunc {}
353
+
352
354
// leaderElectionRunnableFunc is a helper struct that implements LeaderElectionRunnable
353
355
// for testing purposes.
354
356
type leaderElectionRunnableFunc struct {
@@ -364,6 +366,8 @@ func (r leaderElectionRunnableFunc) NeedLeaderElection() bool {
364
366
return r .NeedLeaderElectionFunc ()
365
367
}
366
368
369
+ var _ WarmupRunnable = & warmupRunnableFunc {}
370
+
367
371
// warmupRunnableFunc is a helper struct that implements WarmupRunnable
368
372
// for testing purposes.
369
373
type warmupRunnableFunc struct {
@@ -379,6 +383,10 @@ func (r warmupRunnableFunc) Warmup(ctx context.Context) error {
379
383
return r .WarmupFunc (ctx )
380
384
}
381
385
386
+ func (r warmupRunnableFunc ) WaitForWarmupComplete (ctx context.Context ) bool {
387
+ return true
388
+ }
389
+
382
390
// combinedRunnable implements both WarmupRunnable and LeaderElectionRunnable
383
391
type combinedRunnable struct {
384
392
RunFunc func (context.Context ) error
You can’t perform that action at this time.
0 commit comments