Skip to content

Commit 5e56229

Browse files
committed
rename runnable
1 parent d53ad66 commit 5e56229

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

controller/runnable/initializer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ func InitializeRunnable(mgr manager.Manager, opts controllerruntime.Options) err
1414
// register leader metrics
1515
metrics.RegisterLeaderRunningMetrics()
1616
// register runnable
17-
AddRunnable(opts)
17+
addRunnable(opts)
1818
for _, runnable := range runnable {
1919
if err := mgr.Add(runnable); err != nil {
2020
return err
@@ -23,7 +23,7 @@ func InitializeRunnable(mgr manager.Manager, opts controllerruntime.Options) err
2323
return nil
2424
}
2525

26-
func AddRunnable(opts controllerruntime.Options) {
26+
func addRunnable(opts controllerruntime.Options) {
2727
runnable = append(runnable,
2828
&LeaderMetricsRunnable{leaseName: opts.LeaderElectionID},
2929
&NoneLeaderMetricRunnable{enableLeaderElection: opts.LeaderElection, leaseName: opts.LeaderElectionID},

0 commit comments

Comments
 (0)