Skip to content

Commit

Permalink
🧹 increase leader elect timeouts (#1204)
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Milchev <[email protected]>
  • Loading branch information
imilchev authored Nov 20, 2024
1 parent d7876c4 commit be6d552
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/mondoo-operator/operator/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package operator
import (
"errors"
"fmt"
"time"

"github.com/go-logr/logr"
"github.com/spf13/cobra"
Expand All @@ -15,6 +16,7 @@ import (
// to ensure that exec-entrypoint and run can make use of them.

_ "k8s.io/client-go/plugin/pkg/client/auth"
"k8s.io/utils/ptr"

batchv1 "k8s.io/api/batch/v1"
corev1 "k8s.io/api/core/v1"
Expand Down Expand Up @@ -75,6 +77,8 @@ func init() {
HealthProbeBindAddress: *probeAddr,
LeaderElection: *enableLeaderElection,
LeaderElectionID: "60679458.mondoo.com",
LeaseDuration: ptr.To(30 * time.Second),
RenewDeadline: ptr.To(20 * time.Second),
Client: client.Options{
Cache: &client.CacheOptions{
DisableFor: []client.Object{
Expand Down

0 comments on commit be6d552

Please sign in to comment.