Commit f41ca87
committed
ensure that volumes get rescheduled when fake capacity is exhausted
The driver must return ResourceExhausted when it doesn't have capacity, not
OutOfRange. Then external-provisioner knows that it needs to cause
rescheduling. Also, that error must not get wrapped because that hides
the status code.
The incorrect code bug was introduced in 6ad3189 via cut-and-paste. For the
case above where the volume is too large for *all* driver instances because it
exceeds the configured maximum volume size it makes sense to return OutOfRange
because the error is permanent.1 parent c480b67 commit f41ca87
2 files changed
+3
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
| 142 | + | |
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
| 160 | + | |
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
166 | | - | |
| 165 | + | |
167 | 166 | | |
168 | 167 | | |
169 | 168 | | |
| |||
0 commit comments