Commit 37f0fce0 authored by Matt Liggett's avatar Matt Liggett

Clarify MinAvailable approval semantics.

Fixes doc comments to be in line with #33143
parent e72f26a3
...@@ -24,8 +24,10 @@ import ( ...@@ -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
......
...@@ -24,8 +24,10 @@ import ( ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment