fix(kube): check for ns on enter [EE-5160] (#8647)

Co-authored-by: testa113 <testa113>
pull/8660/head
Ali 2023-03-13 13:57:11 +13:00 committed by GitHub
parent 77b49ae9c5
commit 37f382d286
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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 = {};