mirror of
https://github.com/kubernetes-sigs/descheduler.git
synced 2026-01-26 05:14:13 +01:00
bring removeduplicates to plugin
This commit is contained in:
@@ -94,3 +94,10 @@ func validatePodRestartThreshold(podRestartThreshold int32) error {
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func ValidateRemoveDuplicatesArgs(args *componentconfig.RemoveDuplicatesArgs) error {
|
||||
// At most one of include/exclude can be set
|
||||
return errorsAggregate(
|
||||
validateNamespaceArgs(args.Namespaces),
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user