Skip to content

Commit 04b1ef3

Browse files
authored
Merge pull request kubernetes#129145 from ialidzhikov/fix/confusing-err-message
kube-scheduler: Fix a misleading error message in the VolumeRestrictions plugin
2 parents d63a52a + 55ba8f0 commit 04b1ef3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/scheduler/framework/plugins/volumerestrictions/volume_restrictions.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ const (
5454

5555
// ErrReasonDiskConflict is used for NoDiskConflict predicate error.
5656
ErrReasonDiskConflict = "node(s) had no available disk"
57-
// ErrReasonReadWriteOncePodConflict is used when a pod is found using the same PVC with the ReadWriteOncePod access mode.
58-
ErrReasonReadWriteOncePodConflict = "node has pod using PersistentVolumeClaim with the same name and ReadWriteOncePod access mode"
57+
// ErrReasonReadWriteOncePodConflict is used when a PVC with ReadWriteOncePod access mode is already in-use by another pod.
58+
ErrReasonReadWriteOncePodConflict = "node(s) unavailable due to PersistentVolumeClaim with ReadWriteOncePod access mode already in-use by another pod"
5959
)
6060

6161
// preFilterState computed at PreFilter and used at Filter.

0 commit comments

Comments
 (0)