From 656f993514ccfd3358401471eb740a744ff65fd5 Mon Sep 17 00:00:00 2001 From: Nan Yu Date: Tue, 3 Dec 2019 11:22:23 -0800 Subject: [PATCH] Rename PodDisruptionsAllowed to DisruptionsAllowed in type PodDisruptionBudgetStatus Kubernetes-commit: 1fb0dd4ec5134014e466509163152112626d52c3 --- pkg/describe/versioned/describe.go | 2 +- pkg/describe/versioned/describe_test.go | 2 +- testdata/openapi/swagger.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/describe/versioned/describe.go b/pkg/describe/versioned/describe.go index 576659c8e..0c0b7abb0 100644 --- a/pkg/describe/versioned/describe.go +++ b/pkg/describe/versioned/describe.go @@ -3982,7 +3982,7 @@ func describePodDisruptionBudget(pdb *policyv1beta1.PodDisruptionBudget, events w.Write(LEVEL_0, "Selector:\t\n") } w.Write(LEVEL_0, "Status:\n") - w.Write(LEVEL_2, "Allowed disruptions:\t%d\n", pdb.Status.PodDisruptionsAllowed) + w.Write(LEVEL_2, "Allowed disruptions:\t%d\n", pdb.Status.DisruptionsAllowed) w.Write(LEVEL_2, "Current:\t%d\n", pdb.Status.CurrentHealthy) w.Write(LEVEL_2, "Desired:\t%d\n", pdb.Status.DesiredHealthy) w.Write(LEVEL_2, "Total:\t%d\n", pdb.Status.ExpectedPods) diff --git a/pkg/describe/versioned/describe_test.go b/pkg/describe/versioned/describe_test.go index 0b239ff3f..1a667b287 100644 --- a/pkg/describe/versioned/describe_test.go +++ b/pkg/describe/versioned/describe_test.go @@ -1753,7 +1753,7 @@ func TestDescribePodDisruptionBudget(t *testing.T) { MinAvailable: &minAvailable, }, Status: policyv1beta1.PodDisruptionBudgetStatus{ - PodDisruptionsAllowed: 5, + DisruptionsAllowed: 5, }, }) s := PodDisruptionBudgetDescriber{f} diff --git a/testdata/openapi/swagger.json b/testdata/openapi/swagger.json index 306bb0d6a..36a24895c 100644 --- a/testdata/openapi/swagger.json +++ b/testdata/openapi/swagger.json @@ -14413,7 +14413,7 @@ "type": "integer" }, "observedGeneration": { - "description": "Most recent generation observed when updating this PDB status. PodDisruptionsAllowed and other status information is valid only if observedGeneration equals to PDB's object generation.", + "description": "Most recent generation observed when updating this PDB status. DisruptionsAllowed and other status information is valid only if observedGeneration equals to PDB's object generation.", "format": "int64", "type": "integer" }