-
Notifications
You must be signed in to change notification settings - Fork 470
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
[kong] use latest available Ingress version #446
Conversation
Add support for networking.k8s.io/v1beta1 and networking.k8s.io/v1 Ingress resources. Generate Ingress resources with the newest available version on the cluster. Add support for the ingressClassName field and IngressClass resource.
e277d59
to
2447119
Compare
2447119
to
8f5a609
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would ask that we add some integration tests for this functionality, and then 👍
49220f4
to
e67a1f4
Compare
e67a1f4
to
a495820
Compare
Add support for networking.k8s.io/v1beta1 and networking.k8s.io/v1 Ingress resources. Generate Ingress resources with the newest available version on the cluster. Add support for the ingressClassName field and IngressClass resource. Delete test installs after completion.
This is not working with my 1.18 cluster:
is wrong, as k8s 1.18 has networking.k8s.io/v1 but it doesn't contain Ingress until 1.19. This is what I had to do in one of my charts:
Check this issue here. |
Hi, Upon installing kong ingress controller, i run 'kubectl get ingressclass ", but for some reasons i am unable to find the corresponding ingress class for kong. I guess this Pull Request will address the issue i encountered?
|
@robincher this is a completed PR. We don't normally track new comments on these. Please file an issue, ask a question in the #kong Kubernetes Slack channel, or make a post in Kong Nation in the future. https://github.com/Kong/charts/pull/446/files#diff-1f3f47b958cb61ddd4f0d4a7882b8ebbe64b9771e80f4b76cd94bc327a30f107 should create one if you're on a version that supports it, but part of the check was backwards, so #485 |
What this PR does / why we need it:
Add support for networking.k8s.io/v1beta1 and networking.k8s.io/v1
Ingress resources. Generate Ingress resources with the newest available
version on the cluster.
Add support for the ingressClassName field and IngressClass resource.
We need Ingress v1 support for 1.22. These are fairly recent, however, so instead of blanket changes to v1, this auto-detects the latest available version and creates resources according.
Which issue this PR fixes
(optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged)Special notes for your reviewer:
Does anyone know of a local K8S environment <1.18 that still works? KIND and Minikube are both failing to start for me on 1.17 and 1.16 images, and I can't find related issues with a fix in those projects.
I can force the extensions content to render with invalid versions:
Which makes
helm template trk /tmp/symkong -f ~/src/charts/charts/kong/example-values/minimal-kong-controller.yaml --set admin.enabled=true --set admin.ingress.enabled=true > /tmp/fakeold.yaml
render fakeold.yaml.txtChecklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]
next
branch and targetsnext
, notmain
[kong]
)