Skip to content

Commit d37789c

Browse files
LeoLiuYanlucming
authored andcommitted
koord-descheduler: remove duplicated validation (koordinator-sh#963)
Signed-off-by: LeoLiuYan <929908264@qq.com>
1 parent 94efbed commit d37789c

File tree

1 file changed

+0
-4
lines changed
  • pkg/descheduler/framework/plugins/removepodsviolatingnodeaffinity

1 file changed

+0
-4
lines changed

pkg/descheduler/framework/plugins/removepodsviolatingnodeaffinity/node_affinity.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,6 @@ func New(args runtime.Object, handle framework.Handle) (framework.Plugin, error)
5555
return nil, err
5656
}
5757

58-
if len(nodeAffinityArgs.NodeAffinityType) == 0 {
59-
return nil, fmt.Errorf("NodeAffinityType is empty")
60-
}
61-
6258
var includedNamespaces, excludedNamespaces sets.String
6359
if nodeAffinityArgs.Namespaces != nil {
6460
includedNamespaces = sets.NewString(nodeAffinityArgs.Namespaces.Include...)

0 commit comments

Comments
 (0)