Commit b9a5354
committed
fix(e2e): adapt new KubeClient methods to modular kube-client structure
After rebasing onto main, the kube-client.ts monolith was split into
kube-client/ directory modules. Add methods and constants that our PR
introduced to the new modular structure:
- BACKSTAGE_BACKEND_CONTAINER constant
- patchAppConfig, jsonPatchDeployment, restartDeploymentWithRetry
- removeContainerEnvVars, addContainerEnvVarsFromSecret
- waitForBackstageCrd, createConfigMap, deleteNamespaceIfExists, createNamespace
- getRhdhDeploymentName: use resolveInstallMethod() for INSTALL_METHOD env var
Fix all oxlint violations to comply with strict + pedantic linting:
- Replace || with ?? for nullish coalescing
- Add explicit nullish/empty checks for strict-boolean-expressions
- Fix setTimeout in Promise executors for strict-void-return
- Move inline comments to separate lines
- Add type annotations and safe type assertions
- Swap negated conditions to positive form
Assisted-by: OpenCode1 parent 619ceb3 commit b9a5354
15 files changed
Lines changed: 430 additions & 289 deletions
File tree
- e2e-tests/playwright
- e2e
- configuration-test
- external-database
- plugin-division-mode-schema
- plugins
- scaffolder-backend-module-annotator
- scaffolder-relation-processor
- utils
- keycloak
- kube-client
Lines changed: 10 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
6 | 5 | | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
31 | | - | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
43 | 42 | | |
44 | | - | |
45 | | - | |
46 | | - | |
| 43 | + | |
| 44 | + | |
47 | 45 | | |
48 | 46 | | |
49 | 47 | | |
| |||
Lines changed: 7 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
| 52 | + | |
| 53 | + | |
56 | 54 | | |
57 | 55 | | |
58 | 56 | | |
| |||
76 | 74 | | |
77 | 75 | | |
78 | 76 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
| 77 | + | |
83 | 78 | | |
84 | 79 | | |
85 | 80 | | |
| |||
88 | 83 | | |
89 | 84 | | |
90 | 85 | | |
91 | | - | |
92 | | - | |
| 86 | + | |
| 87 | + | |
93 | 88 | | |
94 | 89 | | |
95 | 90 | | |
| |||
103 | 98 | | |
104 | 99 | | |
105 | 100 | | |
106 | | - | |
107 | | - | |
| 101 | + | |
| 102 | + | |
108 | 103 | | |
109 | 104 | | |
110 | 105 | | |
| |||
Lines changed: 6 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
| 77 | + | |
81 | 78 | | |
82 | 79 | | |
83 | 80 | | |
| |||
86 | 83 | | |
87 | 84 | | |
88 | 85 | | |
89 | | - | |
90 | | - | |
| 86 | + | |
| 87 | + | |
91 | 88 | | |
92 | 89 | | |
93 | 90 | | |
| |||
101 | 98 | | |
102 | 99 | | |
103 | 100 | | |
104 | | - | |
105 | | - | |
| 101 | + | |
| 102 | + | |
106 | 103 | | |
107 | 104 | | |
108 | 105 | | |
| |||
Lines changed: 20 additions & 50 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
102 | | - | |
103 | | - | |
104 | | - | |
| 103 | + | |
105 | 104 | | |
106 | 105 | | |
107 | 106 | | |
| |||
110 | 109 | | |
111 | 110 | | |
112 | 111 | | |
113 | | - | |
114 | | - | |
| 112 | + | |
115 | 113 | | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
| 114 | + | |
| 115 | + | |
124 | 116 | | |
125 | 117 | | |
126 | 118 | | |
| |||
321 | 313 | | |
322 | 314 | | |
323 | 315 | | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
| 316 | + | |
| 317 | + | |
328 | 318 | | |
329 | 319 | | |
330 | 320 | | |
331 | 321 | | |
332 | 322 | | |
333 | 323 | | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
350 | 328 | | |
351 | 329 | | |
352 | 330 | | |
353 | 331 | | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
| 332 | + | |
| 333 | + | |
359 | 334 | | |
360 | 335 | | |
361 | 336 | | |
362 | 337 | | |
363 | 338 | | |
364 | 339 | | |
365 | | - | |
| 340 | + | |
366 | 341 | | |
367 | 342 | | |
368 | 343 | | |
369 | 344 | | |
370 | 345 | | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
| 346 | + | |
| 347 | + | |
375 | 348 | | |
376 | 349 | | |
377 | 350 | | |
| |||
381 | 354 | | |
382 | 355 | | |
383 | 356 | | |
384 | | - | |
385 | | - | |
386 | | - | |
| 357 | + | |
| 358 | + | |
387 | 359 | | |
388 | | - | |
389 | | - | |
390 | | - | |
| 360 | + | |
391 | 361 | | |
0 commit comments