From e2376c27b4cf0ad76762fd49fd9a0fa93d1d64d4 Mon Sep 17 00:00:00 2001 From: Harsh Thakur Date: Fri, 5 Feb 2021 15:39:59 +0530 Subject: [PATCH] Envupdate crossupdate fix (#1866) Co-authored-by: Rahul Bhati Co-authored-by: Vishal --- pkg/executor/executortype/newdeploy/newdeploymgr.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/executor/executortype/newdeploy/newdeploymgr.go b/pkg/executor/executortype/newdeploy/newdeploymgr.go index aa72a915..c1735c0b 100644 --- a/pkg/executor/executortype/newdeploy/newdeploymgr.go +++ b/pkg/executor/executortype/newdeploy/newdeploymgr.go @@ -402,7 +402,7 @@ func (deploy *NewDeploy) initEnvController() (k8sCache.Store, k8sCache.Controlle } func (deploy *NewDeploy) getEnvFunctions(m *metav1.ObjectMeta) []fv1.Function { - funcList, err := deploy.fissionClient.CoreV1().Functions(m.Namespace).List(metav1.ListOptions{}) + funcList, err := deploy.fissionClient.CoreV1().Functions(metav1.NamespaceAll).List(metav1.ListOptions{}) if err != nil { deploy.logger.Error("Error getting functions for env", zap.Error(err), zap.Any("environment", m)) }