Skip to content

Commit 9856ad1

Browse files
Merge pull request #4713 from djoshy/revert-4669-mcs-ca-sync
OCPBUGS-44832: Revert MCS CA rotation
2 parents 54ee389 + eab130a commit 9856ad1

File tree

12 files changed

+25
-854
lines changed

12 files changed

+25
-854
lines changed

cmd/machine-config-controller/start.go

-14
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import (
1010
features "github.com/openshift/api/features"
1111
"github.com/openshift/machine-config-operator/cmd/common"
1212
"github.com/openshift/machine-config-operator/internal/clients"
13-
certrotationcontroller "github.com/openshift/machine-config-operator/pkg/controller/certrotation"
1413
ctrlcommon "github.com/openshift/machine-config-operator/pkg/controller/common"
1514
containerruntimeconfig "github.com/openshift/machine-config-operator/pkg/controller/container-runtime-config"
1615
"github.com/openshift/machine-config-operator/pkg/controller/drain"
@@ -84,18 +83,6 @@ func runStartCmd(_ *cobra.Command, _ []string) {
8483
ctrlctx.FeatureGateAccess,
8584
)
8685

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-
9986
// Start the shared factory informers that you need to use in your controller
10087
ctrlctx.InformerFactory.Start(ctrlctx.Stop)
10188
ctrlctx.KubeInformerFactory.Start(ctrlctx.Stop)
@@ -163,7 +150,6 @@ func runStartCmd(_ *cobra.Command, _ []string) {
163150
go c.Run(2, ctrlctx.Stop)
164151
}
165152
go draincontroller.Run(5, ctrlctx.Stop)
166-
go certrotationcontroller.Run(ctx, 1)
167153

168154
// wait here in this function until the context gets cancelled (which tells us when we are being shut down)
169155
<-ctx.Done()

manifests/machineconfigcontroller/clusterrole.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ rules:
3737
resources: ["daemonsets"]
3838
verbs: ["get"]
3939
- apiGroups: ["machine.openshift.io"]
40-
resources: ["machinesets","machines"]
40+
resources: ["machinesets"]
4141
verbs: ["get", "list", "watch", "patch"]
4242
- apiGroups: ["operator.openshift.io"]
4343
resources: ["machineconfigurations/status"]

manifests/userdata_secret.yaml

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ kind: Secret
33
metadata:
44
name: {{.Role}}-user-data-managed
55
namespace: openshift-machine-api
6-
labels:
7-
"machineconfiguration.openshift.io/managed-ca-bundle-derived-from-configmap": ""
86
type: Opaque
97
data:
108
disableTemplating: "dHJ1ZQo="

0 commit comments

Comments
 (0)