You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current logic of deleting LoadBalancer service during undeploy have few issues.
We should not silently eat InterruptedException as it may be a signal that this task should be aborted. This happens if this is run within cancellable task in TaskExecutor.
We wait LoadBalancer to go away which will never happen as we never ask to delete it.
For example with minikube, there's no real LoadBalancer while service itself is created. When service response have empty LoadBalancer, svc.getStatus().getLoadBalancer().getIngress().isEmpty() will always return true, thus we always wait.
We would have to look into to see why it was decided to confirm that the objects are actually deleted from the K8s cluster. This may not be necessary after all.
Current logic of deleting
LoadBalancer
service during undeploy have few issues.InterruptedException
as it may be a signal that this task should be aborted. This happens if this is run within cancellable task inTaskExecutor
.LoadBalancer
to go away which will never happen as we never ask to delete it.minikube
, there's no realLoadBalancer
while service itself is created. When service response have emptyLoadBalancer
,svc.getStatus().getLoadBalancer().getIngress().isEmpty()
will always return true, thus we always wait.spring-cloud-deployer-kubernetes/src/main/java/org/springframework/cloud/deployer/spi/kubernetes/KubernetesAppDeployer.java
Lines 174 to 198 in 078cedc
The text was updated successfully, but these errors were encountered: