mirror of
https://github.com/kubernetes-sigs/descheduler.git
synced 2026-01-26 13:29:11 +01:00
add argument to remove only pods violating specific node taints
This commit is contained in:
@@ -37,5 +37,9 @@ func ValidateRemovePodsViolatingNodeTaintsArgs(obj runtime.Object) error {
|
||||
}
|
||||
}
|
||||
|
||||
if len(args.ExcludedTaints) > 0 && len(args.IncludedTaints) > 0 {
|
||||
return fmt.Errorf("either includedTaints or excludedTaints can be set, but not both")
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user