-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Allow kustomize users to specify their own OpenAPI schema #2206
Comments
@natasha41575: The label(s) In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/sig cli |
@natasha41575 thanks heaps for implementing this! 2 Qs: $ kustomize openapi fetch elasticsearches.elasticsearch.k8s.elastic.co 2>/dev/null | head -n3
Fetching schema from cluster
{
"definitions": { Additionally when piping the output this seems to leave kubectl broken (proxy stays running forever) $ kustomize openapi fetch elasticsearches.elasticsearch.k8s.elastic.co | head -n3
# works
$ kustomize openapi fetch elasticsearches.elasticsearch.k8s.elastic.co --stack-trace
Fetching schema from cluster
<nil> F0507 11:56:37.055937 2173710 proxy.go:160] listen tcp 127.0.0.1:8081: bind: address already in use
Error fetching schema from cluster.
Please make sure port 8081 is available, kubectl is installed, and its context is set correctly.
Installation and setup instructions: https://kubernetes.io/docs/tasks/tools/install-kubectl/
$ ps aux | grep $(lsof -ti:8081)
afirth 2168653 0.5 0.2 145668 34468 pts/2 Sl 11:49 0:00 /home/afirth/.asdf/installs/kubectl/1.16.15/bin/kubectl proxy --port=8081 & Let me know if you want me to open tix for these somewhere else. Thanks again for building this! |
Thanks for your questions! There are a couple things here.
Thank you for using this feature and testing it out for us. Hopefully your issues will be resolved in the next release. |
/kind feature @natasha41575 I'm thinking this should have "/stage beta" since it has already been implemented in Kustomization (which itself is a beta kind) and is not behind an alpha flag. I'm also thinking the milestone should be set to 1.22, since that's both when the feature merged in Kustomize and likely the kubectl release it will show up in. Could you please update the enhancement description? (with whatever you think is best if you don't agree with my assessment) |
/stage beta |
@KnVerey updated the description with your suggestions I'm also closing this issue because we have finished implementing what we intended to with this KEP. Thanks! |
Enhancement Description
openapi
field to the kustomization file to allow users to specify their own OpenAPI schemas to usek/enhancements
) update PR(s):k/k
) update PR(s):kustomize openapi fetch
command to get schema from local cluster kubernetes-sigs/kustomize#3621k/website
) update PR(s): update kustomize docs for patches and openapi kubernetes-sigs/cli-experimental#131Please keep this description up to date. This will help the Enhancement Team to track the evolution of the enhancement efficiently.
The text was updated successfully, but these errors were encountered: