Commit 3aa7b32
authored
cinder-csi-plugin: Tweak behavior of --with-topology flag (#2998)
This is currently backwards from what you'd expect when the value is
false, with the topology information always being ignored for the Cinder
requests but never ignored for the k8s CSI requests. Modify the former
so that we respect the 'availability' parameter when set - regardless of
the value of --with-topology - and ensure that we never set topology
requirements on the CSI Volume when --with-topology=false.
Signed-off-by: Stephen Finucane <[email protected]>1 parent a401807 commit 3aa7b32
File tree
2 files changed
+17
-25
lines changed- pkg/csi/cinder
2 files changed
+17
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
103 | 101 | | |
104 | 102 | | |
105 | 103 | | |
| |||
120 | 118 | | |
121 | 119 | | |
122 | 120 | | |
123 | | - | |
| 121 | + | |
124 | 122 | | |
125 | 123 | | |
126 | 124 | | |
| |||
250 | 248 | | |
251 | 249 | | |
252 | 250 | | |
253 | | - | |
| 251 | + | |
254 | 252 | | |
255 | 253 | | |
256 | 254 | | |
| |||
1040 | 1038 | | |
1041 | 1039 | | |
1042 | 1040 | | |
1043 | | - | |
| 1041 | + | |
1044 | 1042 | | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
1045 | 1047 | | |
1046 | 1048 | | |
1047 | 1049 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
272 | 271 | | |
273 | 272 | | |
274 | 273 | | |
275 | 274 | | |
276 | 275 | | |
277 | | - | |
278 | | - | |
279 | 276 | | |
280 | 277 | | |
281 | 278 | | |
282 | 279 | | |
283 | 280 | | |
284 | 281 | | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
| 282 | + | |
289 | 283 | | |
290 | 284 | | |
291 | 285 | | |
| |||
324 | 318 | | |
325 | 319 | | |
326 | 320 | | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
| 321 | + | |
| 322 | + | |
333 | 323 | | |
334 | 324 | | |
335 | 325 | | |
| |||
0 commit comments