Remove kubectl Pod Disruption Budget V2 deprecated min-available default

Signed-off-by: Ferran Rodenas <frodenas@gmail.com>
pull/6/head
Ferran Rodenas 2017-10-23 12:49:16 +02:00 committed by Ferran Rodenas
parent dc5852448e
commit e7fab0d397
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,7 @@ func (s *PodDisruptionBudgetV2Generator) validate() error {
return fmt.Errorf("a selector must be specified")
}
if len(s.MaxUnavailable) == 0 && len(s.MinAvailable) == 0 {
return fmt.Errorf("one of min-available/max-available must be specified")
return fmt.Errorf("one of min-available or max-unavailable must be specified")
}
if len(s.MaxUnavailable) > 0 && len(s.MinAvailable) > 0 {
return fmt.Errorf("min-available and max-unavailable cannot be both specified")