@@ -10,7 +10,6 @@ import (
10
10
features "github.com/openshift/api/features"
11
11
"github.com/openshift/machine-config-operator/cmd/common"
12
12
"github.com/openshift/machine-config-operator/internal/clients"
13
- certrotationcontroller "github.com/openshift/machine-config-operator/pkg/controller/certrotation"
14
13
ctrlcommon "github.com/openshift/machine-config-operator/pkg/controller/common"
15
14
containerruntimeconfig "github.com/openshift/machine-config-operator/pkg/controller/container-runtime-config"
16
15
"github.com/openshift/machine-config-operator/pkg/controller/drain"
@@ -84,18 +83,6 @@ func runStartCmd(_ *cobra.Command, _ []string) {
84
83
ctrlctx .FeatureGateAccess ,
85
84
)
86
85
87
- certrotationcontroller , err := certrotationcontroller .New (
88
- ctrlctx .ClientBuilder .KubeClientOrDie ("cert-rotation-controller" ),
89
- ctrlctx .ClientBuilder .ConfigClientOrDie ("cert-rotation-controller" ),
90
- ctrlctx .ClientBuilder .MachineClientOrDie ("cert-rotation-controller" ),
91
- ctrlctx .KubeMAOSharedInformer .Core ().V1 ().Secrets (),
92
- ctrlctx .KubeNamespacedInformerFactory .Core ().V1 ().Secrets (),
93
- ctrlctx .KubeNamespacedInformerFactory .Core ().V1 ().ConfigMaps (),
94
- )
95
- if err != nil {
96
- klog .Fatalf ("unable to start cert rotation controller: %v" , err )
97
- }
98
-
99
86
// Start the shared factory informers that you need to use in your controller
100
87
ctrlctx .InformerFactory .Start (ctrlctx .Stop )
101
88
ctrlctx .KubeInformerFactory .Start (ctrlctx .Stop )
@@ -163,7 +150,6 @@ func runStartCmd(_ *cobra.Command, _ []string) {
163
150
go c .Run (2 , ctrlctx .Stop )
164
151
}
165
152
go draincontroller .Run (5 , ctrlctx .Stop )
166
- go certrotationcontroller .Run (ctx , 1 )
167
153
168
154
// wait here in this function until the context gets cancelled (which tells us when we are being shut down)
169
155
<- ctx .Done ()
0 commit comments