Skip to content
This repository was archived by the owner on Mar 21, 2026. It is now read-only.

chore: enable strict gw group validation#269

Merged
Frostman merged 1 commit intomasterfrom
dev/frostman/strict-gwgr
Feb 18, 2026
Merged

chore: enable strict gw group validation#269
Frostman merged 1 commit intomasterfrom
dev/frostman/strict-gwgr

Conversation

@Frostman
Copy link
Copy Markdown
Member

@Frostman Frostman commented Dec 19, 2025

Fixes #291

@github-actions
Copy link
Copy Markdown

🚀 Temp artifacts published: v0-6c5250acd 🚀

@Frostman Frostman force-pushed the dev/frostman/strict-gwgr branch from 6c5250a to 07ad2ea Compare December 19, 2025 23:28
@github-actions
Copy link
Copy Markdown

🚀 Temp artifacts published: v0-07ad2ea5b 🚀

@Frostman
Copy link
Copy Markdown
Member Author

githedgehog/fabricator#1336 needs to be merged first

@Frostman Frostman force-pushed the dev/frostman/strict-gwgr branch from 07ad2ea to a237949 Compare January 21, 2026 06:49
@github-actions
Copy link
Copy Markdown

🚀 Temp artifacts published: v0-a23794931 🚀

@Frostman Frostman force-pushed the dev/frostman/strict-gwgr branch from a237949 to 937fd2f Compare January 22, 2026 21:27
@github-actions
Copy link
Copy Markdown

🚀 Temp artifacts published: v0-937fd2faa 🚀

@Frostman Frostman force-pushed the dev/frostman/strict-gwgr branch from 937fd2f to 3328ef9 Compare January 23, 2026 06:49
@github-actions
Copy link
Copy Markdown

🚀 Temp artifacts published: v0-3328ef97b 🚀

Signed-off-by: Sergei Lukianov <me@slukjanov.name>
Copilot AI review requested due to automatic review settings February 18, 2026 21:12
@Frostman Frostman force-pushed the dev/frostman/strict-gwgr branch from 3328ef9 to 7f553a3 Compare February 18, 2026 21:12
@github-actions
Copy link
Copy Markdown

🚀 Temp artifacts published: v0-7f553a3c2 🚀

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request enables strict validation for gateway group references by replacing warning logs with proper error returns. Previously, the code would only log warnings when a gateway group was not found or couldn't be retrieved, allowing invalid configurations to proceed. This was a temporary measure indicated by TODO comments stating "enable validation back after it's supplied by the fabricator."

Changes:

  • Removed temporary workaround that logged warnings instead of returning errors for missing gateway groups
  • Added proper error handling to distinguish between NotFound and other retrieval errors
  • Cleaned up unused logging imports

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
api/gateway/v1alpha1/peering_types.go Enabled strict gateway group validation in Peering.Validate(), replacing warning logs with error returns and adding kapierrors import for proper NotFound checking
api/gateway/v1alpha1/gateway_types.go Enabled strict gateway group validation in Gateway.Validate(), replacing warning logs with error returns wrapped in ErrInvalidGW

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread api/gateway/v1alpha1/gateway_types.go
Comment thread api/gateway/v1alpha1/peering_types.go
@Frostman Frostman merged commit 14ad52d into master Feb 18, 2026
15 checks passed
@Frostman Frostman deleted the dev/frostman/strict-gwgr branch February 18, 2026 22:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make gateway group validation strict

2 participants