Rename PodDisruptionsAllowed to DisruptionsAllowed in type PodDisruptionBudgetStatus
Kubernetes-commit: 1fb0dd4ec5134014e466509163152112626d52c3
This commit is contained in:
parent
ce1b5846dc
commit
656f993514
|
@ -3982,7 +3982,7 @@ func describePodDisruptionBudget(pdb *policyv1beta1.PodDisruptionBudget, events
|
|||
w.Write(LEVEL_0, "Selector:\t<unset>\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)
|
||||
|
|
|
@ -1753,7 +1753,7 @@ func TestDescribePodDisruptionBudget(t *testing.T) {
|
|||
MinAvailable: &minAvailable,
|
||||
},
|
||||
Status: policyv1beta1.PodDisruptionBudgetStatus{
|
||||
PodDisruptionsAllowed: 5,
|
||||
DisruptionsAllowed: 5,
|
||||
},
|
||||
})
|
||||
s := PodDisruptionBudgetDescriber{f}
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue