-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Kubectl 1.8 broken for minikube - OpenAPI swagger file doesn't include x-kubernetes-group-version-kind
#1996
Comments
localkube-swagger.txt @apelisse Can you upload the full swagger.json file or verify that the above outputs look similar to yours? Here are the outputs from The localkube swagger.json does seem to include the x-kubernetes-group-version-kind headers, but there are some differences which I'm working through identifying. |
@r2d4 Before we go into debuging this (and I would like to help debugging it), can you confirm if we found a fix here, we can patch minikube 1.7 images with it? |
@mbohlool Well, minikube ships with a default version of a localkube, which we won't be able to patch. We would be able to patch non-default versions, since those are fetched from GCS. The latest version includes a |
This one is not good
This one is fine, as far as I can tell |
@apelisse I've verified that, but what exactly is missing? The headers are there, but I'm not sure which ones are missing - they are present for things like service
|
Yeah, you're looking at the "paths", not the "definitions" section |
x-kubernetes-group-version-kind
x-kubernetes-group-version-kind
IOW, With kubeadm:
With localkube:
|
We had a similar type of issue in apiserver-builder, where |
Any update on this? Let me know if you guys need any help. |
Found the problem after a long debugging :) Short Answer: This is the fix: kubernetes/kubernetes#53152 and you need to update your vendor folder after this gets into 1.7 Longer Answer: We do use full package name as the name of the OpenAPI definitions. The OpenAPI generator take the vendoring folder into account but (in 1.7 code) the extension in |
Automatic merge from submit-queue. Manually cherry-pick 4379bbd as it is part of a larger PR The commit 4379bbd fixes a bug in openapi spec that resulted in some of the type missing group-version-kind extension. That is specificly serious for the projects that vendor kubernetes in (like minikube). It results in them not having GVKs at all (kubernetes/minikube#1996). ```release-note Bugfix: OpenAPI models may not get group-version-kind extension if kubernetes is vendored in another project (e.g. minikube). Kubectl 1.8 needs this extension to work with those projects. ``` @wojtek-t
Automatic merge from submit-queue. Manually cherry-pick 4379bbd as it is part of a larger PR The commit 4379bbd fixes a bug in openapi spec that resulted in some of the type missing group-version-kind extension. That is specificly serious for the projects that vendor kubernetes in (like minikube). It results in them not having GVKs at all (kubernetes/minikube#1996). ```release-note Bugfix: OpenAPI models may not get group-version-kind extension if kubernetes is vendored in another project (e.g. minikube). Kubectl 1.8 needs this extension to work with those projects. ``` @wojtek-t Kubernetes-commit: c33e2b9d5e7df8464a7464496526ee272ad44ff4
It didn't take time for someone to notice: kubernetes/kubectl#67. |
We're working on cherry-picking the fix and backporting it to our localkube releases. We'll make sure that this is fixed in the next version, but for now the only solution is to not upgrade your kubectl to version 1.8. |
Thank you Matt |
I've backported the fix to previous versions of localkube, and it should be fixed for the default version in the next release |
Automatic merge from submit-queue. Manually cherry-pick 4379bbd as it is part of a larger PR The commit 4379bbd fixes a bug in openapi spec that resulted in some of the type missing group-version-kind extension. That is specificly serious for the projects that vendor kubernetes in (like minikube). It results in them not having GVKs at all (kubernetes/minikube#1996). ```release-note Bugfix: OpenAPI models may not get group-version-kind extension if kubernetes is vendored in another project (e.g. minikube). Kubectl 1.8 needs this extension to work with those projects. ``` @wojtek-t Kubernetes-commit: c33e2b9d5e7df8464a7464496526ee272ad44ff4
Automatic merge from submit-queue. Manually cherry-pick 4379bbd as it is part of a larger PR The commit 4379bbd fixes a bug in openapi spec that resulted in some of the type missing group-version-kind extension. That is specificly serious for the projects that vendor kubernetes in (like minikube). It results in them not having GVKs at all (kubernetes/minikube#1996). ```release-note Bugfix: OpenAPI models may not get group-version-kind extension if kubernetes is vendored in another project (e.g. minikube). Kubectl 1.8 needs this extension to work with those projects. ``` @wojtek-t Kubernetes-commit: c33e2b9d5e7df8464a7464496526ee272ad44ff4
Is it resolved in the latest release? |
Yes @sauravomar |
Automatic merge from submit-queue. Manually cherry-pick 4379bbd as it is part of a larger PR The commit 4379bbd fixes a bug in openapi spec that resulted in some of the type missing group-version-kind extension. That is specificly serious for the projects that vendor kubernetes in (like minikube). It results in them not having GVKs at all (kubernetes/minikube#1996). ```release-note Bugfix: OpenAPI models may not get group-version-kind extension if kubernetes is vendored in another project (e.g. minikube). Kubectl 1.8 needs this extension to work with those projects. ``` @wojtek-t Kubernetes-commit: c33e2b9d5e7df8464a7464496526ee272ad44ff4
Automatic merge from submit-queue. Manually cherry-pick 4379bbd as it is part of a larger PR The commit 4379bbd fixes a bug in openapi spec that resulted in some of the type missing group-version-kind extension. That is specificly serious for the projects that vendor kubernetes in (like minikube). It results in them not having GVKs at all (kubernetes/minikube#1996). ```release-note Bugfix: OpenAPI models may not get group-version-kind extension if kubernetes is vendored in another project (e.g. minikube). Kubectl 1.8 needs this extension to work with those projects. ``` @wojtek-t Kubernetes-commit: c33e2b9d5e7df8464a7464496526ee272ad44ff4
Environment:
Minikube version (use
minikube version
): v0.22.2cat ~/.minikube/machines/minikube/config.json | grep DriverName
): VirtualBoxcat ~/.minikube/machines/minikube/config.json | grep -i ISO
orminikube ssh cat /etc/VERSION
): v0.23.4What happened:
Swagger doesn't have
x-kubernetes-group-version-kind
while it should.What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Output of
minikube logs
(if applicable):Anything else do we need to know:
@pwittrock @mbohlool
The text was updated successfully, but these errors were encountered: