summaryrefslogtreecommitdiffstats
path: root/src/monitor/pkg
diff options
context:
space:
mode:
authorIgor D.C <igor.duarte.cardoso@intel.com>2020-10-02 01:40:09 +0000
committerIgor D.C <igor.duarte.cardoso@intel.com>2020-10-02 23:24:52 +0000
commite70a776fd2d16d7d386af0354afd3e086068ef00 (patch)
tree9bfc8337356052c9fa3d856ab632b13234219e92 /src/monitor/pkg
parent8eceef201a6252aeab9a5c2410423642b3726910 (diff)
DCM E2E testing fixes
A set of small fixes after discovery during DCM's end-to-end testing: - properly detect that a cert hasn't been issued yet (don't crash) - in Monitor, don't pass namespace when querying for CSRs - fixed incorrect /kubeconfig file encoding from yaml to json Issue-ID: MULTICLOUD-1143 Change-Id: Ie813e377070b0751f0bfdabac8da50e3288090de Signed-off-by: Igor D.C <igor.duarte.cardoso@intel.com>
Diffstat (limited to 'src/monitor/pkg')
-rw-r--r--src/monitor/pkg/controller/resourcebundlestate/controller.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/monitor/pkg/controller/resourcebundlestate/controller.go b/src/monitor/pkg/controller/resourcebundlestate/controller.go
index 5351ea99..c2695552 100644
--- a/src/monitor/pkg/controller/resourcebundlestate/controller.go
+++ b/src/monitor/pkg/controller/resourcebundlestate/controller.go
@@ -365,7 +365,7 @@ func (r *reconciler) updateCsrs(rbstate *v1alpha1.ResourceBundleState,
// Update the CR with the csrs tracked
csrList := &certsapi.CertificateSigningRequestList{}
- err := listResources(r.client, rbstate.Namespace, selectors, csrList)
+ err := listResources(r.client, "", selectors, csrList)
if err != nil {
log.Printf("Failed to list csrs: %v", err)
return err