Skip to content

Commit

Permalink
Merge pull request #4838 from djoshy/fix-tech-preview-factory
Browse files Browse the repository at this point in the history
OCPBUGS-50002: MCC complains about v1 MachineOSConfig in default featureset
  • Loading branch information
openshift-merge-bot[bot] authored Feb 7, 2025
2 parents d6ac7f3 + ee6d1f6 commit 6546cf2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ verify-e2e: $(patsubst %,_verify-e2e-%,$(E2E_SUITES))

# This was copied from https://github.com/openshift/cluster-image-registry-operator
test-e2e: install-go-junit-report
set -o pipefail; go test -tags=$(GOTAGS) -failfast -timeout 170m -v$${WHAT:+ -run="$$WHAT"} ./test/e2e/ ./test/e2e-techpreview-shared/ | ./hack/test-with-junit.sh $(@)
set -o pipefail; go test -tags=$(GOTAGS) -failfast -timeout 190m -v$${WHAT:+ -run="$$WHAT"} ./test/e2e/ ./test/e2e-techpreview-shared/ | ./hack/test-with-junit.sh $(@)

test-e2e-techpreview: install-go-junit-report
set -o pipefail; go test -tags=$(GOTAGS) -failfast -timeout 170m -v$${WHAT:+ -run="$$WHAT"} ./test/e2e-techpreview ./test/e2e-techpreview-shared/ | ./hack/test-with-junit.sh $(@)
Expand Down
4 changes: 2 additions & 2 deletions cmd/machine-config-controller/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func runStartCmd(_ *cobra.Command, _ []string) {
}

if fg.Enabled(features.FeatureGateOnClusterBuild) {
ctrlctx.TechPreviewInformerFactory.Start(ctrlctx.Stop)
ctrlctx.OCLInformerFactory.Start(ctrlctx.Stop)
}

case <-time.After(1 * time.Minute):
Expand Down Expand Up @@ -250,7 +250,7 @@ func createControllers(ctx *ctrlcommon.ControllerContext) []ctrlcommon.Controlle
ctx.InformerFactory.Machineconfiguration().V1().MachineConfigPools(),
ctx.KubeInformerFactory.Core().V1().Nodes(),
ctx.KubeInformerFactory.Core().V1().Pods(),
ctx.InformerFactory.Machineconfiguration().V1().MachineOSConfigs(),
ctx.OCLInformerFactory.Machineconfiguration().V1().MachineOSConfigs(),
ctx.ConfigInformerFactory.Config().V1().Schedulers(),
ctx.ClientBuilder.KubeClientOrDie("node-update-controller"),
ctx.ClientBuilder.MachineConfigClientOrDie("node-update-controller"),
Expand Down
4 changes: 2 additions & 2 deletions pkg/controller/common/controller_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ type ControllerContext struct {

NamespacedInformerFactory mcfginformers.SharedInformerFactory
InformerFactory mcfginformers.SharedInformerFactory
TechPreviewInformerFactory mcfginformers.SharedInformerFactory
OCLInformerFactory mcfginformers.SharedInformerFactory
KubeInformerFactory informers.SharedInformerFactory
KubeNamespacedInformerFactory informers.SharedInformerFactory
OpenShiftConfigKubeNamespacedInformerFactory informers.SharedInformerFactory
Expand Down Expand Up @@ -135,7 +135,7 @@ func CreateControllerContext(ctx context.Context, cb *clients.Builder) *Controll
ClientBuilder: cb,
NamespacedInformerFactory: sharedNamespacedInformers,
InformerFactory: sharedInformers,
TechPreviewInformerFactory: sharedTechPreviewInformers,
OCLInformerFactory: sharedTechPreviewInformers,
KubeInformerFactory: kubeSharedInformer,
KubeNamespacedInformerFactory: kubeNamespacedSharedInformer,
OpenShiftConfigKubeNamespacedInformerFactory: openShiftConfigKubeNamespacedSharedInformer,
Expand Down

0 comments on commit 6546cf2

Please sign in to comment.