F5Networks / k8s-bigip-ctlr

Repository for F5 Container Ingress Services for Kubernetes & OpenShift.
Apache License 2.0
357 stars 195 forks source link

"Informer not found for namespace" should not pop up when using hub mode #3231

Closed kylinsoong closed 7 months ago

kylinsoong commented 8 months ago

In hub mode, the cis only watch on specific hub namespace, the application namespace not has a Informer is as expect.

With the CIS arguments as below

          args: [
            "--bigip-username=$(BIGIP_USERNAME)",
            "--bigip-password=$(BIGIP_PASSWORD)",
            "--log-level=DEBUG",
            "--manage-ingress=false",
            "--node-poll-interval=60",
            "--periodic-sync-interval=36000",
            "--manage-configmaps=true",
            "--bigip-url=10.1.10.240",
            "--insecure=true",
            "--hubmode=true",
            "--filter-tenants=true",
            "--log-as3-response=true",
            "--bigip-partition=k8s",
            "--pool-member-type=cluster",
            "--namespace=f5-hub-1",
            "--namespace=f5-hub-2"
            ]

Note that only namespace f5-hub-1 and f5-hub-2 has informer created, the other namespace show not has informer, so the following kinds of log should not pop up.

2024/01/15 05:00:26 [ERROR] Informer not found for namespace: cistest002
2024/01/15 05:00:26 [ERROR] Informer not found for namespace: cistest003
2024/01/15 05:00:26 [ERROR] Informer not found for namespace: cistest001
trinaths commented 8 months ago

Created [CONTCNTR-4388] for internal tracking.

trinaths commented 7 months ago

Closing this issue since issue is fixed.