Skip to content

Commit

Permalink
Release leadership on SIGTERM
Browse files Browse the repository at this point in the history
  • Loading branch information
jsafrane committed Jan 5, 2024
1 parent 6eef758 commit a6d8ff0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/operator/starter.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package operator
import (
"bytes"
"context"
"fmt"
"time"

"k8s.io/client-go/dynamic"
Expand Down Expand Up @@ -111,7 +110,7 @@ func RunOperator(ctx context.Context, controllerConfig *controllercmd.Controller

<-ctx.Done()

return fmt.Errorf("stopped")
return nil
}

func replaceNamespaceFunc(namespace string) resourceapply.AssetFunc {
Expand Down

0 comments on commit a6d8ff0

Please sign in to comment.