@@ -13,6 +13,7 @@ import (
1313 ctrlcommon "github.com/openshift/machine-config-operator/pkg/controller/common"
1414 containerruntimeconfig "github.com/openshift/machine-config-operator/pkg/controller/container-runtime-config"
1515 "github.com/openshift/machine-config-operator/pkg/controller/drain"
16+ "github.com/openshift/machine-config-operator/pkg/controller/internalreleaseimage"
1617 kubeletconfig "github.com/openshift/machine-config-operator/pkg/controller/kubelet-config"
1718 machinesetbootimage "github.com/openshift/machine-config-operator/pkg/controller/machine-set-boot-image"
1819 "github.com/openshift/machine-config-operator/pkg/controller/node"
@@ -128,6 +129,20 @@ func runStartCmd(_ *cobra.Command, _ []string) {
128129 ctrlctx .InformerFactory .Start (ctrlctx .Stop )
129130 }
130131
132+ if ctrlctx .FeatureGatesHandler .Enabled (features .FeatureGateNoRegistryClusterInstall ) {
133+ iriController := internalreleaseimage .New (
134+ ctrlctx .InformerFactory .Machineconfiguration ().V1alpha1 ().InternalReleaseImages (),
135+ ctrlctx .InformerFactory .Machineconfiguration ().V1 ().ControllerConfigs (),
136+ ctrlctx .InformerFactory .Machineconfiguration ().V1 ().MachineConfigs (),
137+ ctrlctx .ClientBuilder .KubeClientOrDie ("internalreleaseimage-controller" ),
138+ ctrlctx .ClientBuilder .MachineConfigClientOrDie ("internalreleaseimage-controller" ))
139+
140+ go iriController .Run (2 , ctrlctx .Stop )
141+ // start the informers again to enable feature gated types.
142+ // see comments in SharedInformerFactory interface.
143+ ctrlctx .InformerFactory .Start (ctrlctx .Stop )
144+ }
145+
131146 if ctrlcommon .IsBootImageControllerRequired (ctrlctx ) {
132147 machineSetBootImage := machinesetbootimage .New (
133148 ctrlctx .ClientBuilder .KubeClientOrDie ("machine-set-boot-image-controller" ),
0 commit comments