mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
fix para
This commit is contained in:
parent
5529d01a22
commit
6c0aa1bda9
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user