This commit is contained in:
zhangxiaoyu-zidif 2017-07-23 02:12:53 +08:00
parent 5529d01a22
commit 6c0aa1bda9

View File

@ -214,7 +214,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("exactly one of min-available and max-available must be specified")
return fmt.Errorf("min-available and max-unavailable cannot be both specified")
}
return nil
}