-
-
Notifications
You must be signed in to change notification settings - Fork 117
Ingress api version deprecation support for k8s v.1.22. fixes #277 #301
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
Ingress api version deprecation support for k8s v.1.22. fixes #277 #301
Conversation
48359f4 to
6877f50
Compare
|
Please add a changelog. And would you mind adding some unit tests for the Ingress? There are examples in tests/unit and see the readme under tests |
|
Thanks @cognifloyd for the feedback. Will take a look tomorrow. |
b9e886b to
fd61b79
Compare
f5a9ad0 to
f168716
Compare
and fix tests
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.
K. I added the changelog entry and tests.
| paths: | ||
| {{- range .paths }} | ||
| - path: {{ default "/*" .path }} | ||
| {{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1" }} |
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.
The tests uncovered a bug here. It was missing $ so I added that.
Ingress.yamluses correctapiVersionand relatedspecchanges that are now required starting versionv1.22ofkubernetes.