mirror of
https://github.com/kubernetes-sigs/descheduler.git
synced 2026-01-26 05:14:13 +01:00
Merge pull request #892 from JaneLiuL/master
bring removeduplicates to plugin
This commit is contained in:
@@ -95,3 +95,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