@@ -6,13 +6,9 @@ import (
6
6
7
7
"github.com/spf13/cobra"
8
8
9
- configv1 "github.com/openshift/api/config/v1"
10
9
olmv1alpha1 "github.com/operator-framework/api/pkg/operators/v1alpha1"
11
10
12
11
"k8s.io/apimachinery/pkg/fields"
13
- "k8s.io/apimachinery/pkg/runtime"
14
- utilruntime "k8s.io/apimachinery/pkg/util/runtime"
15
- clientgoscheme "k8s.io/client-go/kubernetes/scheme"
16
12
_ "k8s.io/client-go/plugin/pkg/client/auth"
17
13
18
14
ctrl "sigs.k8s.io/controller-runtime"
@@ -71,6 +67,9 @@ func run(cmd *cobra.Command, args []string) error {
71
67
LeaderElection : ! disableLeaderElection ,
72
68
LeaderElectionNamespace : namespace ,
73
69
LeaderElectionID : leaderElectionConfigmapName ,
70
+ RetryPeriod : timeDurationPtr (defaultRetryPeriod ),
71
+ RenewDeadline : timeDurationPtr (defaultRenewDeadline ),
72
+ LeaseDuration : timeDurationPtr (defaultLeaseDuration ),
74
73
HealthProbeBindAddress : healthCheckAddr ,
75
74
NewCache : cache .BuilderWithOptions (cache.Options {
76
75
SelectorsByObject : cache.SelectorsByObject {
@@ -114,12 +113,3 @@ func run(cmd *cobra.Command, args []string) error {
114
113
115
114
return nil
116
115
}
117
-
118
- func setupScheme () * runtime.Scheme {
119
- scheme := runtime .NewScheme ()
120
- utilruntime .Must (clientgoscheme .AddToScheme (scheme ))
121
- utilruntime .Must (configv1 .Install (scheme ))
122
- utilruntime .Must (olmv1alpha1 .AddToScheme (scheme ))
123
-
124
- return scheme
125
- }
0 commit comments