We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7876c4 commit be6d552Copy full SHA for be6d552
1 file changed
cmd/mondoo-operator/operator/cmd.go
@@ -6,6 +6,7 @@ package operator
6
import (
7
"errors"
8
"fmt"
9
+ "time"
10
11
"github.com/go-logr/logr"
12
"github.com/spf13/cobra"
@@ -15,6 +16,7 @@ import (
15
16
// to ensure that exec-entrypoint and run can make use of them.
17
18
_ "k8s.io/client-go/plugin/pkg/client/auth"
19
+ "k8s.io/utils/ptr"
20
21
batchv1 "k8s.io/api/batch/v1"
22
corev1 "k8s.io/api/core/v1"
@@ -75,6 +77,8 @@ func init() {
75
77
HealthProbeBindAddress: *probeAddr,
76
78
LeaderElection: *enableLeaderElection,
79
LeaderElectionID: "60679458.mondoo.com",
80
+ LeaseDuration: ptr.To(30 * time.Second),
81
+ RenewDeadline: ptr.To(20 * time.Second),
82
Client: client.Options{
83
Cache: &client.CacheOptions{
84
DisableFor: []client.Object{
0 commit comments