Skip to content

Conversation

@Fredi-raspall
Copy link
Contributor

@Fredi-raspall Fredi-raspall commented Jan 27, 2026

This work is not finished but can be safely merged, since I'll be working on other higher prio matters and don't want it to rod.

@Fredi-raspall Fredi-raspall force-pushed the pr/fredi/cleanup-and-validation branch 3 times, most recently from 490ea17 to 15bb24c Compare January 28, 2026 12:12
Signed-off-by: Fredi Raspall <fredi@githedgehog.com>
For some reason, the method was made to return a ConfigResult,
which is unnecessary because it is infallible.

Signed-off-by: Fredi Raspall <fredi@githedgehog.com>
Signed-off-by: Fredi Raspall <fredi@githedgehog.com>
Signed-off-by: Fredi Raspall <fredi@githedgehog.com>
This patch:
 - renames some result codes to better indicate their nature.
 - remaps some of the results to better-suited variants.
 - the goal is to make it easier to know what type or category of
   error to use in each case and unify the stringification.

Signed-off-by: Fredi Raspall <fredi@githedgehog.com>
Signed-off-by: Fredi Raspall <fredi@githedgehog.com>
...dataplane use the same validation logic.
This patch will be ferther simplified later.

Signed-off-by: Fredi Raspall <fredi@githedgehog.com>
Before, we were storing the gateway name in a GwConfig object, which
wrapped an ExternalConfig. This patch moves the gateway name to the
ExternalConfig object itself, as this is more natural, simplifies
the code and will allow for further simplifications.

Signed-off-by: Fredi Raspall <fredi@githedgehog.com>
Since we store the gateway name and genid in the ExternalConfig,
we don't need to call validate_metadata() since that is called
already in the TryFrom implementation to decode the spec into
an ExternalConfig object. This further ensures that both dataplane
and the validator attempt to process a spec using exactly the same
logic.

Signed-off-by: Fredi Raspall <fredi@githedgehog.com>
@Fredi-raspall Fredi-raspall force-pushed the pr/fredi/cleanup-and-validation branch from 15bb24c to 5c4ea1f Compare January 30, 2026 09:00
@Fredi-raspall Fredi-raspall mentioned this pull request Jan 30, 2026
@Fredi-raspall Fredi-raspall marked this pull request as ready for review January 30, 2026 19:14
@Fredi-raspall Fredi-raspall requested a review from a team as a code owner January 30, 2026 19:14
@Fredi-raspall Fredi-raspall requested review from sergeymatov and removed request for a team January 30, 2026 19:14
Simplify the implementation of Ord for GwGroupMember, given that
no two group members can have the same name.

Signed-off-by: Fredi Raspall <fredi@githedgehog.com>
@Fredi-raspall Fredi-raspall force-pushed the pr/fredi/cleanup-and-validation branch from 5c4ea1f to 8196637 Compare January 31, 2026 17:50
Copy link
Member

@qmonnet qmonnet left a comment

Choose a reason for hiding this comment

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

Looks good, thank you

@Fredi-raspall Fredi-raspall added this pull request to the merge queue Feb 2, 2026
Merged via the queue into main with commit 1d22d6c Feb 2, 2026
22 checks passed
@Fredi-raspall Fredi-raspall deleted the pr/fredi/cleanup-and-validation branch February 2, 2026 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants