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() {
349349 })
350350})
351351
352+ var _ LeaderElectionRunnable = & leaderElectionRunnableFunc {}
353+
352354// leaderElectionRunnableFunc is a helper struct that implements LeaderElectionRunnable
353355// for testing purposes.
354356type leaderElectionRunnableFunc struct {
@@ -364,6 +366,8 @@ func (r leaderElectionRunnableFunc) NeedLeaderElection() bool {
364366 return r .NeedLeaderElectionFunc ()
365367}
366368
369+ var _ WarmupRunnable = & warmupRunnableFunc {}
370+
367371// warmupRunnableFunc is a helper struct that implements WarmupRunnable
368372// for testing purposes.
369373type warmupRunnableFunc struct {
@@ -379,6 +383,10 @@ func (r warmupRunnableFunc) Warmup(ctx context.Context) error {
379383 return r .WarmupFunc (ctx )
380384}
381385
386+ func (r warmupRunnableFunc ) WaitForWarmupComplete (ctx context.Context ) bool {
387+ return true
388+ }
389+
382390// combinedRunnable implements both WarmupRunnable and LeaderElectionRunnable
383391type combinedRunnable struct {
384392 RunFunc func (context.Context ) error
You can’t perform that action at this time.
0 commit comments