Skip to content

Commit

Permalink
cmd: add WithVersion to StartController
Browse files Browse the repository at this point in the history
  • Loading branch information
mfojtik committed Apr 14, 2020
1 parent d3cb092 commit eca6660
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/controller/controllercmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ func (c *ControllerCommandConfig) StartController(ctx context.Context) error {
WithKubeConfigFile(c.basicFlags.KubeConfigFile, nil).
WithComponentNamespace(c.basicFlags.Namespace).
WithLeaderElection(config.LeaderElection, c.basicFlags.Namespace, c.componentName+"-lock").
WithVersion(c.version).
WithRestartOnChange(exitOnChangeReactorCh, startingFileContent, observedFiles...)

if !c.DisableServing {
Expand Down

0 comments on commit eca6660

Please sign in to comment.