Commit 373e131
kubernetes: Use RBAC apiGroup when policybinds is not available
When there are no policybindings use the RBAC apiGroup to
watch and update rolebindings. These are different objects
from the openshift rolebindings but the openshift ones
are still not watchable.
I'm not entirely happy with this, but we need to be able to
work with both types for now. Long term we need to either
drop compatibility faster or change the way we load
schema to make it more dynamic.
Closes cockpit-project#80381 parent 806d266 commit 373e131
File tree
4 files changed
+95
-49
lines changed- pkg/kubernetes/scripts
- test/verify
4 files changed
+95
-49
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
36 | 74 | | |
37 | 75 | | |
38 | 76 | | |
39 | 77 | | |
40 | | - | |
41 | | - | |
| 78 | + | |
| 79 | + | |
42 | 80 | | |
43 | 81 | | |
44 | 82 | | |
| |||
47 | 85 | | |
48 | 86 | | |
49 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
50 | 97 | | |
51 | 98 | | |
52 | 99 | | |
| |||
82 | 129 | | |
83 | 130 | | |
84 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
85 | 136 | | |
86 | 137 | | |
87 | 138 | | |
| |||
236 | 287 | | |
237 | 288 | | |
238 | 289 | | |
239 | | - | |
240 | 290 | | |
241 | 291 | | |
242 | 292 | | |
| |||
246 | 296 | | |
247 | 297 | | |
248 | 298 | | |
249 | | - | |
| 299 | + | |
| 300 | + | |
250 | 301 | | |
251 | 302 | | |
252 | 303 | | |
| |||
255 | 306 | | |
256 | 307 | | |
257 | 308 | | |
| 309 | + | |
258 | 310 | | |
259 | 311 | | |
260 | 312 | | |
| |||
268 | 320 | | |
269 | 321 | | |
270 | 322 | | |
271 | | - | |
| 323 | + | |
272 | 324 | | |
273 | 325 | | |
274 | | - | |
275 | 326 | | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
276 | 331 | | |
277 | | - | |
278 | | - | |
| 332 | + | |
279 | 333 | | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
291 | 343 | | |
292 | 344 | | |
293 | 345 | | |
| |||
334 | 386 | | |
335 | 387 | | |
336 | 388 | | |
337 | | - | |
338 | | - | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
339 | 394 | | |
340 | 395 | | |
341 | 396 | | |
342 | 397 | | |
343 | 398 | | |
344 | 399 | | |
| 400 | + | |
345 | 401 | | |
346 | 402 | | |
347 | 403 | | |
| |||
356 | 412 | | |
357 | 413 | | |
358 | 414 | | |
359 | | - | |
360 | | - | |
| 415 | + | |
| 416 | + | |
361 | 417 | | |
362 | 418 | | |
363 | 419 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
| 110 | + | |
110 | 111 | | |
111 | 112 | | |
112 | | - | |
| 113 | + | |
113 | 114 | | |
114 | 115 | | |
115 | 116 | | |
| |||
149 | 150 | | |
150 | 151 | | |
151 | 152 | | |
152 | | - | |
| 153 | + | |
| 154 | + | |
153 | 155 | | |
154 | 156 | | |
| 157 | + | |
155 | 158 | | |
156 | 159 | | |
157 | 160 | | |
| |||
192 | 195 | | |
193 | 196 | | |
194 | 197 | | |
195 | | - | |
| 198 | + | |
| 199 | + | |
196 | 200 | | |
197 | 201 | | |
| 202 | + | |
198 | 203 | | |
199 | 204 | | |
200 | 205 | | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| |||
1154 | 1154 | | |
1155 | 1155 | | |
1156 | 1156 | | |
1157 | | - | |
1158 | | - | |
1159 | | - | |
1160 | 1157 | | |
1161 | 1158 | | |
1162 | 1159 | | |
| |||
1228 | 1225 | | |
1229 | 1226 | | |
1230 | 1227 | | |
1231 | | - | |
1232 | 1228 | | |
1233 | 1229 | | |
1234 | 1230 | | |
| |||
1237 | 1233 | | |
1238 | 1234 | | |
1239 | 1235 | | |
1240 | | - | |
1241 | 1236 | | |
1242 | 1237 | | |
1243 | 1238 | | |
1244 | 1239 | | |
1245 | 1240 | | |
1246 | 1241 | | |
1247 | | - | |
| 1242 | + | |
1248 | 1243 | | |
1249 | 1244 | | |
1250 | 1245 | | |
| |||
1277 | 1272 | | |
1278 | 1273 | | |
1279 | 1274 | | |
1280 | | - | |
1281 | 1275 | | |
1282 | 1276 | | |
1283 | 1277 | | |
1284 | 1278 | | |
1285 | 1279 | | |
1286 | | - | |
| 1280 | + | |
1287 | 1281 | | |
1288 | 1282 | | |
1289 | 1283 | | |
| |||
1307 | 1301 | | |
1308 | 1302 | | |
1309 | 1303 | | |
1310 | | - | |
1311 | | - | |
1312 | | - | |
1313 | 1304 | | |
1314 | 1305 | | |
1315 | 1306 | | |
| |||
1319 | 1310 | | |
1320 | 1311 | | |
1321 | 1312 | | |
1322 | | - | |
1323 | 1313 | | |
1324 | 1314 | | |
1325 | | - | |
1326 | 1315 | | |
1327 | 1316 | | |
1328 | 1317 | | |
1329 | 1318 | | |
1330 | 1319 | | |
1331 | 1320 | | |
1332 | | - | |
| 1321 | + | |
1333 | 1322 | | |
1334 | 1323 | | |
1335 | 1324 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
109 | | - | |
| 108 | + | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
600 | 600 | | |
601 | 601 | | |
602 | 602 | | |
| 603 | + | |
603 | 604 | | |
604 | 605 | | |
605 | 606 | | |
| |||
0 commit comments