-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
API docs wrong for BuildConfig instantiate #8345
Comments
@smarterclayton how do we fix the generated swagger doc? not clear to me how it's determining the return type. this doc is also wrong: guessing that swagger just assumes POST operations are creates that return the type you posted. |
We'd have to fix api registration in Kube and have additional info defined On Mon, Apr 4, 2016 at 12:48 PM, Ben Parees [email protected]
|
@smarterclayton is there an upstream issue for this? |
Not today On Mon, Apr 4, 2016 at 4:09 PM, Ben Parees [email protected] wrote:
|
Any news on that? I've just found it because https://docs.openshift.org/latest/rest_api/kubernetes_v1.html is talking about SCC (but it shouldn't) while https://docs.openshift.org/latest/rest_api/openshift_v1.html misses SCC stuff. |
@jim-minter in your recent exploration of the api doc did you turn up anything that has changed on this? |
@bparees https://github.com/openshift/origin/blob/master/vendor/k8s.io/kubernetes/staging/src/k8s.io/apiserver/pkg/registry/rest/rest.go#L310-L320 almost does the trick; will work on it. |
Automatic merge from submit-queue (batch tested with PRs 51067, 52319, 52803, 52961, 51972). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.. ProducesObject should only update the returned API object resource documentation This should be a no-op for Kubernetes (the only rest.Storage that specifies ProducesObject() is pod logs, on GET), but will allow issues such as openshift/origin#8345 to be resolved (where generated API documentation is currently incorrect due to the asymmetry between the object kind sent and received by the API) ```release-note NONE```
Automatic merge from submit-queue (batch tested with PRs 16546, 16398, 16157) api docs should show right return value for build instantiate{binary,} fixes #8345 dependent on kubernetes/kubernetes#51972 merging
Automatic merge from submit-queue (batch tested with PRs 51067, 52319, 52803, 52961, 51972). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.. ProducesObject should only update the returned API object resource documentation This should be a no-op for Kubernetes (the only rest.Storage that specifies ProducesObject() is pod logs, on GET), but will allow issues such as openshift/origin#8345 to be resolved (where generated API documentation is currently incorrect due to the asymmetry between the object kind sent and received by the API) ```release-note NONE``` Kubernetes-commit: 50fa5637b6dc9538c908fbdd632ff1d3c59f65da
Automatic merge from submit-queue (batch tested with PRs 51067, 52319, 52803, 52961, 51972). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.. ProducesObject should only update the returned API object resource documentation This should be a no-op for Kubernetes (the only rest.Storage that specifies ProducesObject() is pod logs, on GET), but will allow issues such as openshift/origin#8345 to be resolved (where generated API documentation is currently incorrect due to the asymmetry between the object kind sent and received by the API) ```release-note NONE``` Kubernetes-commit: 50fa5637b6dc9538c908fbdd632ff1d3c59f65da
Automatic merge from submit-queue (batch tested with PRs 51067, 52319, 52803, 52961, 51972). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.. ProducesObject should only update the returned API object resource documentation This should be a no-op for Kubernetes (the only rest.Storage that specifies ProducesObject() is pod logs, on GET), but will allow issues such as openshift/origin#8345 to be resolved (where generated API documentation is currently incorrect due to the asymmetry between the object kind sent and received by the API) ```release-note NONE``` Kubernetes-commit: 50fa5637b6dc9538c908fbdd632ff1d3c59f65da
Automatic merge from submit-queue (batch tested with PRs 51067, 52319, 52803, 52961, 51972). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.. ProducesObject should only update the returned API object resource documentation This should be a no-op for Kubernetes (the only rest.Storage that specifies ProducesObject() is pod logs, on GET), but will allow issues such as openshift/origin#8345 to be resolved (where generated API documentation is currently incorrect due to the asymmetry between the object kind sent and received by the API) ```release-note NONE``` Kubernetes-commit: 50fa5637b6dc9538c908fbdd632ff1d3c59f65da
Docs at https://docs.openshift.org/latest/rest_api/openshift_v1.html#create-instantiate-of-a-buildrequest say the response is a
v1.BuildRequest
, whereas it really is av1.Build
.The text was updated successfully, but these errors were encountered: