Rename PodDisruptionsAllowed to DisruptionsAllowed in type PodDisruptionBudgetStatus

This commit is contained in:
Nan Yu
2019-12-03 11:22:23 -08:00
parent 249c6cf915
commit 1fb0dd4ec5
25 changed files with 195 additions and 196 deletions

View File

@@ -21,7 +21,7 @@ import (
"testing"
"time"
"k8s.io/api/core/v1"
v1 "k8s.io/api/core/v1"
"k8s.io/api/policy/v1beta1"
apiextensionsv1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1"
apiextensionsclientset "k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset"
@@ -170,7 +170,7 @@ func TestPDBWithScaleSubresource(t *testing.T) {
if expected, found := int32(replicas)-maxUnavailable, newPdb.Status.DesiredHealthy; expected != found {
t.Errorf("Expected %d, but found %d", expected, found)
}
if expected, found := maxUnavailable, newPdb.Status.PodDisruptionsAllowed; expected != found {
if expected, found := maxUnavailable, newPdb.Status.DisruptionsAllowed; expected != found {
t.Errorf("Expected %d, but found %d", expected, found)
}
}