Commit a9f14f9
feat(auth): verify API client connectivity in set_api_client
Add an authentication check when setting a custom API client to
catch misconfigured or invalid clients early. The verification
calls AuthenticationApi.get_api_group() to confirm the client
can reach the Kubernetes API server before proceeding.
Signed-off-by: Saad Zaher <szaher@redhat.com>1 parent e5cdf08 commit a9f14f9
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
0 commit comments