mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-30 21:33:53 +00:00
clean unused predicate error
This commit is contained in:
@@ -38,8 +38,8 @@ const (
|
||||
// Using the name of the plugin will likely help us avoid collisions with other plugins.
|
||||
preFilterStateKey = "PreFilter" + Name
|
||||
|
||||
// ErrServiceAffinityViolated is used for CheckServiceAffinity predicate error.
|
||||
ErrServiceAffinityViolated = "node(s) didn't match service affinity"
|
||||
// ErrReason is used for CheckServiceAffinity predicate error.
|
||||
ErrReason = "node(s) didn't match service affinity"
|
||||
)
|
||||
|
||||
// Args holds the args that are used to configure the plugin.
|
||||
@@ -277,7 +277,7 @@ func (pl *ServiceAffinity) Filter(ctx context.Context, cycleState *framework.Cyc
|
||||
return nil
|
||||
}
|
||||
|
||||
return framework.NewStatus(framework.Unschedulable, ErrServiceAffinityViolated)
|
||||
return framework.NewStatus(framework.Unschedulable, ErrReason)
|
||||
}
|
||||
|
||||
// Score invoked at the Score extension point.
|
||||
|
||||
Reference in New Issue
Block a user