From b93b4717273792f239ac9d889de3177e08330fda Mon Sep 17 00:00:00 2001 From: killianmuldoon Date: Mon, 7 Aug 2023 14:14:27 +0100 Subject: [PATCH] Fix ClusterClass enqueue for ExtensionConfig Signed-off-by: killianmuldoon --- internal/controllers/clusterclass/clusterclass_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/controllers/clusterclass/clusterclass_controller.go b/internal/controllers/clusterclass/clusterclass_controller.go index 8ed336440999..d524c247007e 100644 --- a/internal/controllers/clusterclass/clusterclass_controller.go +++ b/internal/controllers/clusterclass/clusterclass_controller.go @@ -409,7 +409,7 @@ func (r *Reconciler) extensionConfigToClusterClass(ctx context.Context, o client } for _, patch := range clusterClass.Spec.Patches { if patch.External != nil && patch.External.DiscoverVariablesExtension != nil { - res = append(res, ctrl.Request{NamespacedName: client.ObjectKey{Name: ext.Name}}) + res = append(res, ctrl.Request{NamespacedName: client.ObjectKey{Namespace: clusterClass.Namespace, Name: clusterClass.Name}}) break } }