k8s-reporter: get all config-map
Change the report scopr of config-maps
state to all namespaces.
This enable one to debug issues that caused
by config-maps that are not related to
kubevirt deployment.
@@ -479,7 +479,7 @@ func (r *KubernetesReporter) logConfigMaps(virtCli kubecli.KubevirtClient) {
}
defer f.Close()
- configmaps, err := virtCli.CoreV1().ConfigMaps(flags.KubeVirtInstallNamespace).List(metav1.ListOptions{})
+ configmaps, err := virtCli.CoreV1().ConfigMaps(v1.NamespaceAll).List(metav1.ListOptions{})
if err != nil {
fmt.Fprintf(os.Stderr, "failed to fetch configmaps: %v\n", err)
return
