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

Should add an introspection endpoint to know which types are under which api paths #230

Closed
jwforres opened this issue Oct 16, 2014 · 7 comments

Comments

@jwforres
Copy link
Member

Currently a UI will have to know whether any given type is under the /api or the /osapi paths. It would be better to be able to introspect a URL on /osapi that tells us the types and the paths for those types.

There may be other things we want to introspect later. We may also want to add a similar introspection endpoint to upstream kubernetes.

@fabianofranz
Copy link
Member

That sounds good. Currently the WIP around osc have two rest clients, and every command needs to know who to call.

Proxying all endpoints of /api through /osapi (or vice-versa) could also be an option (much simpler for api consumers).

@fabianofranz
Copy link
Member

/CC @liggitt @smarterclayton @jcantrill

@jcantrill
Copy link
Contributor

Is there any reason NOT to have a singular endpoint. OpenShift is supposed to be a value add to k8e. I think it would make more sense to either move our endpoints under the default or alias the k8e endpoints through ours. Isn't k8e supposed to be more about the building blocks anyway, meaning we are more likely to use higher level constructs of OS over k8e going forward. Additionally, I would hope we wouldn't have any overlap since that would be really confusing.

@smarterclayton
Copy link
Contributor

We'll probably punt on doing anything like this until we sort this out upstream in the "ComponentPlugins" issue.

On Oct 17, 2014, at 8:47 AM, Jeff Cantrill notifications@github.com wrote:

Is there any reason NOT to have a singular endpoint. OpenShift is supposed to be a value add to k8e. I think it would make more sense to either move our endpoints under the default or alias the k8e endpoints through ours. Isn't k8e supposed to be more about the building blocks anyway, meaning we are more likely to use higher level constructs of OS over k8e going forward. Additionally, I would hope we wouldn't have any overlap since that would be really confusing.


Reply to this email directly or view it on GitHub.

@smarterclayton
Copy link
Contributor

The idea there is something like a single endpoint for all listeners so it should be feasible to do what you're asking. The hard problems are when authorization is inconsistent across endpoints or plugins (which will exist).

@smarterclayton
Copy link
Contributor

Upstream added this - we'll get it when we adopt gorestful

@smarterclayton
Copy link
Contributor

We have this now.

marun pushed a commit to marun/origin that referenced this issue Jun 1, 2016
danwinship pushed a commit to danwinship/origin that referenced this issue Jun 24, 2016
Bump node subnet wait to 30 seconds (from 10)
jpeeler pushed a commit to jpeeler/origin that referenced this issue Feb 1, 2018
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

4 participants