1
0
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:
Kubernetes Prow Robot
2022-08-10 02:40:30 -07:00
committed by GitHub
8 changed files with 239 additions and 147 deletions

View File

@@ -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),
)
}