mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 07:19:41 +02:00
fix(api/endpoint): refresh kubernetes client cache on endpoint update (#6752)
This commit is contained in:
parent
f707c90cd3
commit
aac2aca912
2 changed files with 2 additions and 1 deletions
|
@ -63,7 +63,7 @@ func (manager *Manager) GetEndpointProxy(endpoint *portainer.Endpoint) http.Hand
|
|||
|
||||
// DeleteEndpointProxy deletes the proxy associated to a key
|
||||
// and cleans the k8s environment(endpoint) client cache. DeleteEndpointProxy
|
||||
// is currently only called for edge connection clean up.
|
||||
// is currently only called for edge connection clean up and when endpoint is updated
|
||||
func (manager *Manager) DeleteEndpointProxy(endpointID portainer.EndpointID) {
|
||||
manager.endpointProxies.Remove(fmt.Sprint(endpointID))
|
||||
manager.k8sClientFactory.RemoveKubeClient(endpointID)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue