Fix Pod not being removed after istio-sidecar is removed - #34500
Conversation
|
Please don't merge this PR - my friend joshua has spotted some additional areas of improvement and will commit to this PR soon |
You should keep your PR as a draft until it is ready |
Yup - sorry for that |
…-pod-that-istio-not-running Fix KPO cant kill pod that istio not running
|
If |
|
@hussein-awala Can I seek for your review again ? Many thanks |
|
Can you update the summary/description of this PR now that the approach has changed a bit? |
Thanks. I've updated the descriptions |
fixes #34482
kubelet client will not remove pods for us. After discussions, it is discovered that all containers inside a Pod will be able to respond to a SIGTERM signal. So instead of going into the istio-proxy container and use the
/quitquitquitendpoint to pause the sidecar, we can just use the apidelete_namespaced_podto delete the entire pod.This PR therefore changes the logic to delete the pod directly regardless of whether istio is enabled