mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-02 03:08:15 +00:00
scheduler: ValidateNodeResourcesFitArgs will check ScoringStrategy.Type field and print supported ScoringStrategyType list on error
This commit is contained in:
@@ -283,7 +283,7 @@ func TestLeastAllocatedScoringStrategy(t *testing.T) {
|
||||
wantErrs: field.ErrorList{
|
||||
&field.Error{
|
||||
Type: field.ErrorTypeInvalid,
|
||||
Field: "resources[0].weight",
|
||||
Field: "scoringStrategy.resources[0].weight",
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -306,7 +306,7 @@ func TestLeastAllocatedScoringStrategy(t *testing.T) {
|
||||
wantErrs: field.ErrorList{
|
||||
&field.Error{
|
||||
Type: field.ErrorTypeInvalid,
|
||||
Field: "resources[1].weight",
|
||||
Field: "scoringStrategy.resources[1].weight",
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -327,7 +327,7 @@ func TestLeastAllocatedScoringStrategy(t *testing.T) {
|
||||
wantErrs: field.ErrorList{
|
||||
&field.Error{
|
||||
Type: field.ErrorTypeInvalid,
|
||||
Field: "resources[1].weight",
|
||||
Field: "scoringStrategy.resources[1].weight",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user