You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This may be an inquiry more than a request, but I'm trying to use this library to list/create a job in my cluster.
According to these docs, the correct api endpoint is: GET /apis/batch/v1/namespaces/{namespace}/jobs/{name}.
When I use this library like so (assuming the namespace configured in the k8 constructor is my-namespace: k8.namespace.jobs('my-job').get(a => console.log(a));
It makes a request to:
/api/v1/namespaces/my-namespace/jobs/my-job
How do I get the first part of that url be /apis/batch/v1/namespaces? Is there a setting I'm missing somewhere?
Thanks, and I appreciate all the work you've done on the library so far!
The text was updated successfully, but these errors were encountered:
This may be an inquiry more than a request, but I'm trying to use this library to list/create a job in my cluster.
According to these docs, the correct api endpoint is:
GET /apis/batch/v1/namespaces/{namespace}/jobs/{name}
.When I use this library like so (assuming the namespace configured in the k8 constructor is
my-namespace
:k8.namespace.jobs('my-job').get(a => console.log(a));
It makes a request to:
/api/v1/namespaces/my-namespace/jobs/my-job
How do I get the first part of that url be
/apis/batch/v1/namespaces
? Is there a setting I'm missing somewhere?Thanks, and I appreciate all the work you've done on the library so far!
The text was updated successfully, but these errors were encountered: