-
Notifications
You must be signed in to change notification settings - Fork 596
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
feat(#3097): propagate translation failures for netv1.Ingress #3138
Conversation
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.
Ditto the other review about not testing upstream. https://github.com/kubernetes/kubernetes/blob/c61c3fc492424bfcfabf132650c2bc4404ef2727/pkg/apis/networking/validation/validation.go#L442 and https://github.com/kubernetes/kubernetes/blob/c61c3fc492424bfcfabf132650c2bc4404ef2727/pkg/apis/networking/validation/validation.go#L49 are the relevant bits here.
Other than the minor test gripe, LGTM.
What this PR does / why we need it:
It introduces propagating of translation failures related to Ingress resources:
Apart from that, it also removes validation of
//
in the HTTP route path - it's already handled by the Kubernetes API itself - proved in the added integration test.Which issue this PR fixes:
Part of #3097.
Notes to reviewers:
I had to add strict causing object validations to the
NewTranslationFailure
constructor to make sure we won't reference empty/nil objects. I encountered such an issue withParent
field being empty for akongstate.Service
generated fromIngress
in some cases (fixed in this PR).PR Readiness Checklist:
Complete these before marking the PR as
ready to review
:CHANGELOG.md
release notes have been updated to reflect any significant (and particularly user-facing) changes introduced by this PR