Commit f6bd897
fix: RayJob submit now uses the API client set via set_api_client()
The vendored RayjobApi and RayClusterApi were creating their own
Kubernetes clients by calling config.load_kube_config() directly,
ignoring the client provided through set_api_client(). This caused
403 errors when authenticating with a custom token, as the request
would fall back to the default kubeconfig or in-cluster service account.
Override the vendored API instances after construction with ones that
use the SDK's global API client, consistent with how the rest of the
SDK (Kueue, Cluster) handles authentication.
Signed-off-by: Saad Zaher <szaher@redhat.com>1 parent dd98ce0 commit f6bd897
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| 43 | + | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| |||
169 | 171 | | |
170 | 172 | | |
171 | 173 | | |
| 174 | + | |
| 175 | + | |
172 | 176 | | |
| 177 | + | |
173 | 178 | | |
| 179 | + | |
| 180 | + | |
174 | 181 | | |
175 | 182 | | |
176 | 183 | | |
| |||
0 commit comments