mirror of
https://github.com/stakater/Reloader.git
synced 2026-05-06 00:36:39 +00:00
fix: skip controller creation for namespace in test
Signed-off-by: Craig Trought <k8s@trought.ca>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user