From e1c89668e0f6d0982429458520b06a3ca39b197c Mon Sep 17 00:00:00 2001 From: Hanshal Mehta <122217807+hanshal101@users.noreply.github.com> Date: Tue, 30 Jul 2024 18:49:52 +0530 Subject: [PATCH] feat: deploy modules to different namespaces Signed-off-by: hanshal101 <122217807+hanshal101@users.noreply.github.com> --- cyclops-ctrl/api/v1alpha1/client/modules.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cyclops-ctrl/api/v1alpha1/client/modules.go b/cyclops-ctrl/api/v1alpha1/client/modules.go index 85937b0f0..823673f4b 100644 --- a/cyclops-ctrl/api/v1alpha1/client/modules.go +++ b/cyclops-ctrl/api/v1alpha1/client/modules.go @@ -32,6 +32,7 @@ func (c *moduleClient) List(opts metav1.ListOptions) ([]cyclopsv1alpha1.Module, result := cyclopsv1alpha1.ModuleList{} err := c.restClient. Get(). + Namespace(c.ns). Resource("modules"). Do(context.Background()). Into(&result)