mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-02 03:08:15 +00:00
Change FailedScheduling Event message to be more intuitive
This commit is contained in:
@@ -1120,7 +1120,7 @@ func TestSchedulerWithVolumeBinding(t *testing.T) {
|
||||
FindReasons: volumebinding.ConflictReasons{volumebinding.ErrReasonNodeConflict},
|
||||
},
|
||||
eventReason: "FailedScheduling",
|
||||
expectError: makePredicateError("1 node(s) had volume node affinity conflict"),
|
||||
expectError: makePredicateError("1 node(s) didn't match PersistentVolume's node affinity"),
|
||||
},
|
||||
{
|
||||
name: "unbound/no matches",
|
||||
@@ -1136,7 +1136,7 @@ func TestSchedulerWithVolumeBinding(t *testing.T) {
|
||||
FindReasons: volumebinding.ConflictReasons{volumebinding.ErrReasonBindConflict, volumebinding.ErrReasonNodeConflict},
|
||||
},
|
||||
eventReason: "FailedScheduling",
|
||||
expectError: makePredicateError("1 node(s) didn't find available persistent volumes to bind, 1 node(s) had volume node affinity conflict"),
|
||||
expectError: makePredicateError("1 node(s) didn't find available persistent volumes to bind, 1 node(s) didn't match PersistentVolume's node affinity"),
|
||||
},
|
||||
{
|
||||
name: "unbound/found matches/bind succeeds",
|
||||
|
||||
Reference in New Issue
Block a user