only return namesapces that has roles in
@@ -100,11 +100,13 @@ func getNamespaceListChannel(k8sClient *kubernetes.Clientset, listOptions metaV1
roles = append(roles, "reader")
}
+ if len(roles) > 0 {
list = append(list, Namespace{
Name: item.Name,
Roles: roles,
})
}
+ }
channel.List <- list
channel.Error <- nil
