fix: skip controller creation for namespace in test

Signed-off-by: Craig Trought <k8s@trought.ca>
This commit is contained in:
ctrought
2023-04-02 16:47:17 -04:00
parent 8e8ce51313
commit 24e794bb38

View File

@@ -45,6 +45,9 @@ func TestMain(m *testing.M) {
logrus.Infof("Creating controller")
for k := range kube.ResourceMap {
if k == "namespaces" {
continue
}
c, err := NewController(clients.KubernetesClient, k, namespace, []string{}, "", "", collectors)
if err != nil {
logrus.Fatalf("%s", err)