Skip to content

Commit

Permalink
Merge pull request #437 from jsafrane/fix-lease-origin-master
Browse files Browse the repository at this point in the history
STOR-1714: Release leadership on SIGTERM
  • Loading branch information
openshift-merge-bot[bot] committed Jan 10, 2024
2 parents 886dd7d + ff65eb8 commit d134e06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/operator/operator_starter.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func (ssr *StandaloneStarter) StartOperator(ctx context.Context) error {
csoclients.StartInformers(ssr.commonClients, ctx.Done())

ssr.startControllers(ctx)
return fmt.Errorf("stopped")
return nil
}

func (ssr *StandaloneStarter) populateConfigs(clients *csoclients.Clients) []csioperatorclient.CSIOperatorConfig {
Expand Down Expand Up @@ -295,7 +295,7 @@ func (hsr *HyperShiftStarter) StartOperator(ctx context.Context) error {
csoclients.StartMgmtInformers(hsr.mgmtClient, ctx.Done())

hsr.startControllers(ctx)
return fmt.Errorf("stopped")
return nil
}

func (hsr *HyperShiftStarter) populateConfigs(clients *csoclients.Clients) []csioperatorclient.CSIOperatorConfig {
Expand Down

0 comments on commit d134e06

Please sign in to comment.