1
0
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:
JaneLiuL
2022-08-10 14:58:56 +08:00
parent ccfaeb2275
commit 3474725176
8 changed files with 239 additions and 147 deletions

View File

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