Skip to content
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

Merged
merged 15 commits into from
Nov 9, 2022

Conversation

czeslavo
Copy link
Contributor

@czeslavo czeslavo commented Nov 8, 2022

What this PR does / why we need it:

It introduces propagating of translation failures related to Ingress resources:

  • missing service,
  • missing service port.

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 with Parent field being empty for a kongstate.Service generated from Ingress in some cases (fixed in this PR).

PR Readiness Checklist:

Complete these before marking the PR as ready to review:

  • the CHANGELOG.md release notes have been updated to reflect any significant (and particularly user-facing) changes introduced by this PR

@czeslavo czeslavo self-assigned this Nov 8, 2022
@czeslavo czeslavo temporarily deployed to Configure ci November 8, 2022 13:51 Inactive
@czeslavo czeslavo added this to the KIC v2.8.0 milestone Nov 8, 2022
@czeslavo czeslavo temporarily deployed to Configure ci November 8, 2022 14:12 Inactive
@czeslavo czeslavo changed the title feat(#3097): propagate translation failures for Ingress feat(#3097): propagate translation failures for netv1.Ingress Nov 8, 2022
@czeslavo czeslavo temporarily deployed to Configure ci November 8, 2022 15:40 Inactive
@czeslavo czeslavo temporarily deployed to Configure ci November 8, 2022 15:43 Inactive
@czeslavo czeslavo temporarily deployed to Configure ci November 8, 2022 16:07 Inactive
@czeslavo czeslavo temporarily deployed to Configure ci November 8, 2022 16:07 Inactive
@czeslavo czeslavo marked this pull request as ready for review November 8, 2022 18:01
@czeslavo czeslavo requested a review from a team as a code owner November 8, 2022 18:01
Copy link
Contributor

@rainest rainest left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@czeslavo czeslavo temporarily deployed to Configure ci November 9, 2022 08:58 Inactive
@czeslavo czeslavo requested a review from rainest November 9, 2022 08:59
@czeslavo czeslavo temporarily deployed to Configure ci November 9, 2022 09:22 Inactive
@czeslavo czeslavo temporarily deployed to Configure ci November 9, 2022 09:22 Inactive
@czeslavo czeslavo enabled auto-merge (squash) November 9, 2022 17:21
@czeslavo czeslavo merged commit ca86910 into main Nov 9, 2022
@czeslavo czeslavo deleted the feat/service-related-failures-propagation branch November 9, 2022 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants