Commit 16013c44 authored by Michail Kargakis's avatar Michail Kargakis

registry: use correct pdb client call in eviction rest

parent eeae8b59
......@@ -108,7 +108,7 @@ func (r *EvictionREST) checkAndDecrement(namespace string, pdb policy.PodDisrupt
}
pdb.Status.PodDisruptionAllowed = false
if _, err := r.podDisruptionBudgetClient.PodDisruptionBudgets(namespace).Update(&pdb); err != nil {
if _, err := r.podDisruptionBudgetClient.PodDisruptionBudgets(namespace).UpdateStatus(&pdb); err != nil {
return false, err
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment