-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Rejecting admission review because the request does not contain an Ingress resource but networking.k8s.io/v1, Kind=Ingress #7305
Comments
ping @rikatz |
/assign @cpanato |
thanks for opening this issue @cmoulliard I recommend you to use the manifests from the tested using the manifest above and works fine |
I will close this issue because if you use the manifests from the release-v1beta1 it works /close |
@cpanato: Closing this issue. 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. |
this file seems |
@oldthreefeng, try the recent release of the controller. |
Versions
NGINX Ingress controller version: 0.47
Deploy yml file: master
Kubernetes version: 1.21.1
Environment: MacOS
Install tools: kind (version 0.11.1)
What happened
When we deploy an ingress resource on a kubernetes cluster 1.21.1 where ingress has been deployed using this file: https://github.com/kubernetes/ingress-nginx/blob/master/deploy/static/provider/kind/deploy.yaml
then we got this error from the
ingress controller
and of course the resource is not installedThis error is due to the fact that the controller, during webadmission checks, expects to get a resource of type
v1beta1
and notv1
.See this line: https://github.com/kubernetes/ingress-nginx/blob/controller-v0.47.0/internal/admission/controller/main.go#L49
The problem is due to the fact that the version
master
orv1.0.0-alpha.1
of the deploy.yaml file still installs the old version released of the controller which is 0.47 - https://github.com/kubernetes/ingress-nginx/blob/master/deploy/static/provider/kind/deploy.yaml#L327and not the master branch code where the version verified is
v1
as you can see here: https://github.com/kubernetes/ingress-nginx/blob/master/internal/admission/controller/main.go#L47Remark: The error message logged is not correct as it should mention
rejecting admission review because the request contains an Ingress resource : networking.k8s.io/v1, Kind=Ingress while we expect a resource: networking.k8s.io/v1beta1, Kind=Ingress"
What you expected to happen
Ingress resource should be installed and no error returned
How to reproduce it
Error from server (InternalError): error when creating "STDIN": Internal error occurred: failed calling webhook "validate.nginx.ingress.kubernetes.io": an error on the server ("") has prevented the request from succeeding
Resource deployed
The text was updated successfully, but these errors were encountered: