Commit 6c0aa1bd authored by zhangxiaoyu-zidif's avatar zhangxiaoyu-zidif

fix para

parent 5529d01a
...@@ -214,7 +214,7 @@ func (s *PodDisruptionBudgetV2Generator) validate() error { ...@@ -214,7 +214,7 @@ func (s *PodDisruptionBudgetV2Generator) validate() error {
return fmt.Errorf("a selector must be specified") return fmt.Errorf("a selector must be specified")
} }
if len(s.MaxUnavailable) > 0 && len(s.MinAvailable) > 0 { 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 return nil
} }
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