From bca32b02c723850d0cb1d74f6fa0f23ea0db127f Mon Sep 17 00:00:00 2001 From: Alice Groux Date: Sat, 20 Mar 2021 23:35:54 +0100 Subject: [PATCH] fix(k8s/endpoint): update endpoint URL (#4484) * fix(k8s/endpoint): update endpoint URL * fix(endpoints): handle kube agent url * fix(endpoints): fix handling endpoint urls Co-authored-by: Chaim Lev-Ari --- app/portainer/views/endpoints/edit/endpointController.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/portainer/views/endpoints/edit/endpointController.js b/app/portainer/views/endpoints/edit/endpointController.js index ad17e0a90..d1f121cd7 100644 --- a/app/portainer/views/endpoints/edit/endpointController.js +++ b/app/portainer/views/endpoints/edit/endpointController.js @@ -147,6 +147,10 @@ angular payload.URL = 'tcp://' + endpoint.URL; } + if (endpoint.Type === PortainerEndpointTypes.AgentOnKubernetesEnvironment) { + payload.URL = endpoint.URL; + } + $scope.state.actionInProgress = true; EndpointService.updateEndpoint(endpoint.Id, payload).then( function success() {