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 @@ -65,7 +65,7 @@ const (
65
65
// ErrReasonBindConflict is used for VolumeBindingNoMatch predicate error.
66
66
ErrReasonBindConflict ConflictReason = "node(s) didn't find available persistent volumes to bind"
67
67
// ErrReasonNodeConflict is used for VolumeNodeAffinityConflict predicate error.
68
- ErrReasonNodeConflict ConflictReason = "node(s) had volume node affinity conflict "
68
+ ErrReasonNodeConflict ConflictReason = "node(s) didn't match PersistentVolume's node affinity"
69
69
// ErrReasonNotEnoughSpace is used when a pod cannot start on a node because not enough storage space is available.
70
70
ErrReasonNotEnoughSpace = "node(s) did not have enough free storage"
71
71
// 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 @@ -1120,7 +1120,7 @@ func TestSchedulerWithVolumeBinding(t *testing.T) {
1120
1120
FindReasons : volumebinding.ConflictReasons {volumebinding .ErrReasonNodeConflict },
1121
1121
},
1122
1122
eventReason : "FailedScheduling" ,
1123
- expectError : makePredicateError ("1 node(s) had volume node affinity conflict " ),
1123
+ expectError : makePredicateError ("1 node(s) didn't match PersistentVolume's node affinity" ),
1124
1124
},
1125
1125
{
1126
1126
name : "unbound/no matches" ,
@@ -1136,7 +1136,7 @@ func TestSchedulerWithVolumeBinding(t *testing.T) {
1136
1136
FindReasons : volumebinding.ConflictReasons {volumebinding .ErrReasonBindConflict , volumebinding .ErrReasonNodeConflict },
1137
1137
},
1138
1138
eventReason : "FailedScheduling" ,
1139
- expectError : makePredicateError ("1 node(s) didn't find available persistent volumes to bind, 1 node(s) had volume node affinity conflict " ),
1139
+ expectError : makePredicateError ("1 node(s) didn't find available persistent volumes to bind, 1 node(s) didn't match PersistentVolume's node affinity" ),
1140
1140
},
1141
1141
{
1142
1142
name : "unbound/found matches/bind succeeds" ,
You can’t perform that action at this time.
0 commit comments