Skip to content

Commit 55ba8f0

Browse files
ialidzhikovmimiteto
andcommitted
kube-scheduler: Fix a misleading error message in the VolumeRestrictions plugin
Co-authored-by: Dimitar Ivanov <[email protected]>
1 parent a499fac commit 55ba8f0

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)