File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
framework/plugins/volumebinding Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ const (
64
64
// ErrReasonBindConflict is used for VolumeBindingNoMatch predicate error.
65
65
ErrReasonBindConflict ConflictReason = "node(s) didn't find available persistent volumes to bind"
66
66
// ErrReasonNodeConflict is used for VolumeNodeAffinityConflict predicate error.
67
- ErrReasonNodeConflict ConflictReason = "node(s) had volume node affinity conflict "
67
+ ErrReasonNodeConflict ConflictReason = "node(s) didn't match PersistentVolume's node affinity"
68
68
// ErrReasonNotEnoughSpace is used when a pod cannot start on a node because not enough storage space is available.
69
69
ErrReasonNotEnoughSpace = "node(s) did not have enough free storage"
70
70
// ErrReasonPVNotExist is used when a pod has one or more PVC(s) bound to non-existent persistent volume(s)"
Original file line number Diff line number Diff line change @@ -1132,7 +1132,7 @@ func TestSchedulerWithVolumeBinding(t *testing.T) {
1132
1132
FindReasons : volumebinding.ConflictReasons {volumebinding .ErrReasonNodeConflict },
1133
1133
},
1134
1134
eventReason : "FailedScheduling" ,
1135
- expectError : makePredicateError ("1 node(s) had volume node affinity conflict " ),
1135
+ expectError : makePredicateError ("1 node(s) didn't match PersistentVolume's node affinity" ),
1136
1136
},
1137
1137
{
1138
1138
name : "unbound/no matches" ,
@@ -1148,7 +1148,7 @@ func TestSchedulerWithVolumeBinding(t *testing.T) {
1148
1148
FindReasons : volumebinding.ConflictReasons {volumebinding .ErrReasonBindConflict , volumebinding .ErrReasonNodeConflict },
1149
1149
},
1150
1150
eventReason : "FailedScheduling" ,
1151
- expectError : makePredicateError ("1 node(s) didn't find available persistent volumes to bind, 1 node(s) had volume node affinity conflict " ),
1151
+ expectError : makePredicateError ("1 node(s) didn't find available persistent volumes to bind, 1 node(s) didn't match PersistentVolume's node affinity" ),
1152
1152
},
1153
1153
{
1154
1154
name : "unbound/found matches/bind succeeds" ,
You can’t perform that action at this time.
0 commit comments