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

Fix cilium panic when HttpRoute with missing port. #27959

Merged
merged 1 commit into from
Sep 14, 2023

Conversation

chaunceyjiang
Copy link
Member

Must have port for Service reference

Fixes: #27956

Refer to https://github.com/cilium/cilium/blob/main/vendor/sigs.k8s.io/gateway-api/apis/v1beta1/object_reference_types.go#L95

Fixes: #issue-number

Must have port for Service reference

@chaunceyjiang chaunceyjiang requested a review from a team as a code owner September 6, 2023 09:20
@maintainer-s-little-helper maintainer-s-little-helper bot added the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Sep 6, 2023
@github-actions github-actions bot added the kind/community-contribution This was a contribution made by a community member. label Sep 6, 2023
@chaunceyjiang
Copy link
Member Author

/cc @meyskens @sig-servicemesh Ready for review, PTAL. Thanks~

@meyskens
Copy link
Member

Thanks good find! Might it be worth also adding a operator check like https://github.com/cilium/cilium/blob/main/operator/pkg/gateway-api/routechecks/route_checks.go#L40 so we can alert the user the route is not valid? As far as I know it is not there yet.

@maintainer-s-little-helper
Copy link

Commit 8ca07ab147f60713912e2e3ec538cb26a68031f8 does not match "(?m)^Signed-off-by:".

Please follow instructions provided in https://docs.cilium.io/en/stable/contributing/development/contributing_guide/#developer-s-certificate-of-origin

@maintainer-s-little-helper maintainer-s-little-helper bot added the dont-merge/needs-sign-off The author needs to add signoff to their commits before merge. label Sep 13, 2023
@maintainer-s-little-helper maintainer-s-little-helper bot removed the dont-merge/needs-sign-off The author needs to add signoff to their commits before merge. label Sep 13, 2023
Must have port for Service reference

Fixes: cilium#27956

Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
@chaunceyjiang
Copy link
Member Author

Hi, @meyskens Please take a look again. Thanks~

@meyskens
Copy link
Member

/test

Copy link
Member

@meyskens meyskens left a comment

Choose a reason for hiding this comment

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

Thanks for the changes! LGTM for me :)

@meyskens meyskens added the release-note/bug This PR fixes an issue in a previous release of Cilium. label Sep 14, 2023
@maintainer-s-little-helper maintainer-s-little-helper bot removed the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Sep 14, 2023
@meyskens meyskens added dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. area/servicemesh GH issues or PRs regarding servicemesh labels Sep 14, 2023
@maintainer-s-little-helper maintainer-s-little-helper bot removed dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. labels Sep 14, 2023
@meyskens meyskens added dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. feature/k8s-gateway-api labels Sep 14, 2023
@maintainer-s-little-helper maintainer-s-little-helper bot removed the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Sep 14, 2023
@meyskens meyskens added the needs-backport/1.14 This PR / issue needs backporting to the v1.14 branch label Sep 14, 2023
@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Sep 14, 2023
@julianwiedmann julianwiedmann merged commit 76c86df into cilium:main Sep 14, 2023
61 checks passed
@giorio94 giorio94 mentioned this pull request Sep 26, 2023
22 tasks
@giorio94 giorio94 added backport-pending/1.14 The backport for Cilium 1.14.x for this PR is in progress. and removed needs-backport/1.14 This PR / issue needs backporting to the v1.14 branch labels Sep 26, 2023
@aanm aanm added backport-done/1.14 The backport for Cilium 1.14.x for this PR is done. and removed backport-pending/1.14 The backport for Cilium 1.14.x for this PR is in progress. labels Sep 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/servicemesh GH issues or PRs regarding servicemesh backport-done/1.14 The backport for Cilium 1.14.x for this PR is done. feature/k8s-gateway-api kind/community-contribution This was a contribution made by a community member. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/bug This PR fixes an issue in a previous release of Cilium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Gateway API] Cilium panic: runtime error
5 participants