Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jobs API endpoint #66

Closed
thataustin opened this issue Jan 30, 2017 · 2 comments
Closed

Jobs API endpoint #66

thataustin opened this issue Jan 30, 2017 · 2 comments

Comments

@thataustin
Copy link

thataustin commented Jan 30, 2017

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!

@jcrugzz
Copy link
Collaborator

jcrugzz commented Jan 30, 2017

@thataustin this would need #57 to be merged in order to have the correct batch ApiGroup

@thataustin
Copy link
Author

Kinda what I figured based on how it seems to be auto-magically constructing the url from the attribute references.

Here's to merging #57 🍺

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants