This repository was archived by the owner on Jun 26, 2026. It is now read-only.
Repository navigation
Commit 1a69605
committed
fix(k8s-client): add optional client prop to K8sProvider for test injection
Backport the client injection escape-hatch from main so the test-utils
render helper (renderWithK8sProvider) can pass a mock K8sClient without
going through a real K8sClientConfig. Production callers are unaffected —
the prop is optional and the existing config-based construction is the
fallback.
Assisted-By: Claude <noreply@anthropic.com>
Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>1 parent 0fddf0f commit 1a69605
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
35 | | - | |
36 | | - | |
| 37 | + | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
41 | | - | |
| 43 | + | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| |||
0 commit comments