Skip to content

mcmanager does not enqueue requests for reconcilers when provider is nil #50

@tobschli

Description

@tobschli

What happened:

When trying to use a multi-cluster manager with the provider being nil, no requests are enqueued for the local manager.

How to reproduce it (as minimally and precisely as possible):

I modified the apiexport provider snippet to set the provider to nil and let it run against a kind Cluster 1

In this cluster, there were ConfigMaps, like kube-root-ca.crt in default namespace.

When running the controller against the kind Cluster, it successfully starts, but no requests get enqueued:

❯ KUBECONFIG=path/to/kind/kubeconfig go run cmd/test/main.go 
2025-07-11T15:19:20+02:00       INFO    entrypoint      Setting up manager
2025-07-11T15:19:20+02:00       INFO    entrypoint      Starting manager
2025-07-11T15:19:20+02:00       INFO    controller-runtime.metrics      Starting metrics server
2025-07-11T15:19:20+02:00       INFO    Starting Controller     {"controller": "kcp-configmap-controller", "controllerGroup": "", "controllerKind": "ConfigMap"}
2025-07-11T15:19:20+02:00       INFO    Starting workers        {"controller": "kcp-configmap-controller", "controllerGroup": "", "controllerKind": "ConfigMap", "worker count": 1}
2025-07-11T15:19:20+02:00       INFO    controller-runtime.metrics      Serving metrics server  {"bindAddress": ":8080", "secure": false}

Environment:

  • sigs.k8s.io/controller-runtime:v0.20.4
  • sigs.k8s.io/multicluster-runtime:v0.20.4-alpha.7
  • Kubernetes version: v1.32.2

Footnotes

  1. Gist

Metadata

Metadata

Assignees

No one assigned

    Labels

    sig/multiclusterCategorizes an issue or PR as relevant to SIG Multicluster.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions