From 37f382d2865a764305749a97c532f78adbdff7d0 Mon Sep 17 00:00:00 2001 From: Ali <83188384+testA113@users.noreply.github.com> Date: Mon, 13 Mar 2023 13:57:11 +1300 Subject: [PATCH] fix(kube): check for ns on enter [EE-5160] (#8647) Co-authored-by: testa113 --- app/kubernetes/__module.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/kubernetes/__module.js b/app/kubernetes/__module.js index ab05117ef..5ebe986fb 100644 --- a/app/kubernetes/__module.js +++ b/app/kubernetes/__module.js @@ -46,6 +46,8 @@ angular.module('portainer.kubernetes', ['portainer.app', registriesModule, custo if (endpoint.Type === PortainerEndpointTypes.EdgeAgentOnKubernetesEnvironment && endpoint.Status === EnvironmentStatus.Down) { throw new Error('Unable to contact Edge agent, please ensure that the agent is properly running on the remote environment.'); } + + await KubernetesNamespaceService.get(); } catch (e) { let params = {};