From 16013c442f487cf69f9df09978d4cf7929f1269f Mon Sep 17 00:00:00 2001 From: Michail Kargakis Date: Sun, 23 Oct 2016 13:40:06 +0200 Subject: [PATCH] registry: use correct pdb client call in eviction rest --- pkg/registry/core/pod/etcd/eviction.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/registry/core/pod/etcd/eviction.go b/pkg/registry/core/pod/etcd/eviction.go index 3aa788bdb7d..96d6da890f6 100644 --- a/pkg/registry/core/pod/etcd/eviction.go +++ b/pkg/registry/core/pod/etcd/eviction.go @@ -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 }