mirror of
https://github.com/go-micro/go-micro.git
synced 2025-06-24 22:26:54 +02:00
get k8s pod (#2173)
This commit is contained in:
@ -155,7 +155,7 @@ func (k *k8sWatcher) handleEvent(event watch.Event) {
|
||||
|
||||
for _, result := range results {
|
||||
// pod isnt running
|
||||
if pod.Status.Phase != podRunning {
|
||||
if pod.Status.Phase != podRunning || pod.Meta.DeletionTimestamp != "" {
|
||||
result.Action = "delete"
|
||||
}
|
||||
k.next <- result
|
||||
|
Reference in New Issue
Block a user