Clarify MinAvailable approval semantics.

Fixes doc comments to be in line with #33143
This commit is contained in:
Matt Liggett 2016-09-21 09:56:03 -07:00
parent e72f26a3ff
commit 37f0fce0b8
2 changed files with 8 additions and 4 deletions

View File

@ -24,8 +24,10 @@ import (
// PodDisruptionBudgetSpec is a description of a PodDisruptionBudget. // PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.
type PodDisruptionBudgetSpec struct { type PodDisruptionBudgetSpec struct {
// The minimum number of pods that must be available simultaneously. This // An eviction is allowed if at least "minAvailable" pods selected by
// can be either an integer or a string specifying a percentage, e.g. "28%". // "selector" will still be available after the eviction, i.e. even in the
// absence of the evicted pod. So for example you can prevent all voluntary
// evictions by specifying "100%".
MinAvailable intstr.IntOrString `json:"minAvailable,omitempty"` MinAvailable intstr.IntOrString `json:"minAvailable,omitempty"`
// Label query over pods whose evictions are managed by the disruption // Label query over pods whose evictions are managed by the disruption

View File

@ -24,8 +24,10 @@ import (
// PodDisruptionBudgetSpec is a description of a PodDisruptionBudget. // PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.
type PodDisruptionBudgetSpec struct { type PodDisruptionBudgetSpec struct {
// The minimum number of pods that must be available simultaneously. This // An eviction is allowed if at least "minAvailable" pods selected by
// can be either an integer or a string specifying a percentage, e.g. "28%". // "selector" will still be available after the eviction, i.e. even in the
// absence of the evicted pod. So for example you can prevent all voluntary
// evictions by specifying "100%".
MinAvailable intstr.IntOrString `json:"minAvailable,omitempty" protobuf:"bytes,1,opt,name=minAvailable"` MinAvailable intstr.IntOrString `json:"minAvailable,omitempty" protobuf:"bytes,1,opt,name=minAvailable"`
// Label query over pods whose evictions are managed by the disruption // Label query over pods whose evictions are managed by the disruption