mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
registry: use correct pdb client call in eviction rest
This commit is contained in:
parent
eeae8b5975
commit
16013c442f
@ -108,7 +108,7 @@ func (r *EvictionREST) checkAndDecrement(namespace string, pdb policy.PodDisrupt
|
|||||||
}
|
}
|
||||||
|
|
||||||
pdb.Status.PodDisruptionAllowed = false
|
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
|
return false, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user