Skip to content

Conversation

@Fredi-raspall
Copy link
Contributor

No description provided.

@Fredi-raspall Fredi-raspall force-pushed the pr/fredi/cleanup-and-validation branch 2 times, most recently from a9f4dbf to 490ea17 Compare January 27, 2026 22:04
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>
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 490ea17 to 15bb24c Compare January 28, 2026 12:12
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.

2 participants