Skip to content

Reflector skipping some namespaces #283

@Rahulsharma0810

Description

@Rahulsharma0810

I have the below config for the secret.

  secretTemplate:
    annotations:
      reflector.v1.k8s.emberstack.com/auto-reflects: cert-manager/demo-secret
      reflector.v1.k8s.emberstack.com/reflection-allowed: "true"
      reflector.v1.k8s.emberstack.com/reflection-allowed-namespaces: "" # Control destination namespaces
      reflector.v1.k8s.emberstack.com/reflection-auto-enabled: "true" # Auto create reflection for matching namespaces
      reflector.v1.k8s.emberstack.com/reflection-auto-namespaces: "" # Control auto-reflection namespaces
      reflector.v1.k8s.emberstack.com/reflected-version: ""

My clusters all namespaces.

❯ k get ns
NAME                   STATUS   AGE
argocd                 Active   196d
cert-manager           Active   212d
default                Active   213d
gatekeeper             Active   166d
homeassistant          Active   113d
homebridge             Active   116d
ingress-nginx          Active   196d
kube-node-lease        Active   213d
kube-public            Active   213d
kube-system            Active   213d
kubernetes-dashboard   Active   194d
metallb-system         Active   213d
openebs                Active   194d
pihole                 Active   193d
vault                  Active   166d
2022-05-06 11:35:10.828 +00:00 [INF] (ES.Kubernetes.Reflector.Core.SecretMirror) Auto-reflected cert-manager/demo-secret where permitted. Created 0 - Updated 9 - Deleted 0 - Validated 0.
2022-05-06 11:35:11.837 +00:00 [INF] (ES.Kubernetes.Reflector.Core.SecretMirror) Patched default/demo-secret as a reflection of cert-manager/demo-secret
2022-05-06 11:35:11.847 +00:00 [INF] (ES.Kubernetes.Reflector.Core.SecretMirror) Patched gatekeeper/demo-secret as a reflection of cert-manager/demo-secret
2022-05-06 11:35:12.856 +00:00 [INF] (ES.Kubernetes.Reflector.Core.SecretMirror) Patched ingress-nginx/demo-secret as a reflection of cert-manager/demo-secret
2022-05-06 11:35:13.868 +00:00 [INF] (ES.Kubernetes.Reflector.Core.SecretMirror) Patched kube-node-lease/demo-secret as a reflection of cert-manager/demo-secret
2022-05-06 11:35:14.877 +00:00 [INF] (ES.Kubernetes.Reflector.Core.SecretMirror) Patched kube-public/demo-secret as a reflection of cert-manager/demo-secret
2022-05-06 11:35:15.889 +00:00 [INF] (ES.Kubernetes.Reflector.Core.SecretMirror) Patched kube-system/demo-secret as a reflection of cert-manager/demo-secret
2022-05-06 11:35:16.899 +00:00 [INF] (ES.Kubernetes.Reflector.Core.SecretMirror) Patched kubernetes-dashboard/demo-secret as a reflection of cert-manager/demo-secret
2022-05-06 11:35:17.910 +00:00 [INF] (ES.Kubernetes.Reflector.Core.SecretMirror) Patched metallb-system/demo-secret as a reflection of cert-manager/demo-secret
2022-05-06 11:35:18.921 +00:00 [INF] (ES.Kubernetes.Reflector.Core.SecretMirror) Patched openebs/demo-secret as a reflection of cert-manager/demo-secret
2022-05-06 11:40:49.008 +00:00 [INF] (ES.Kubernetes.Reflector.Core.NamespaceWatcher) Session closed. Duration: 00:40:12.5265326. Faulted: False.
2022-05-06 11:40:49.008 +00:00 [INF] (ES.Kubernetes.Reflector.Core.NamespaceWatcher) Requesting V1Namespace resources

as you can see argocd and other few namespaces don't show up in the logs as well there is no secret too.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions