// DeletePod removes the pod from the cache.
DeletePod removes the pod from the cache.
// DeletePod removes the pod from the cache .
func (rm *ResourceManager) DeletePod(p *v1.Pod) bool {
	rm.Lock()
	defer rm.Unlock()
	podKey := rm.getStoreKey(p.Namespace, p.Name)
	if old, ok := rm.pods[podKey]; ok {
		rm.decrementRefCounters(old)
		delete(rm.pods, podKey)
		return true
	}
	if _, ok := rm.deletingPods[podKey]; ok {
		delete(rm.deletingPods, podKey)
	}
	return false
}
func ( rm * ResourceManager ) DeletePod ( p * v1 . Pod ) bool { rm . Lock ( ) defer rm . Unlock ( ) podKey := rm . getStoreKey ( p . Namespace , p . Name ) if old , ok := rm . pods [ podKey ] ; ok { rm . decrementRefCounters ( old ) delete ( rm . pods , podKey ) return true } if _ , ok := rm . deletingPods [ podKey ] ; ok { delete ( rm . deletingPods , podKey ) } return false }
DeletePod removes the pod from the cache.
DeletePod removes the pod from the cache .