Skip to content

Fix misalignment in PodNamespaceSelector representation #142

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

frapizzato
Copy link

Hello everyone,

This pull request addresses a parsing error in the REAR Controller caused by a misalignment between the internal and CRD representations of the PodNamespaceSelector.

The issue arises when the providers' Flavor resources include a non-empty value for the networkAuthorizations field, which is used for the intent-based border protection solution developed in WP5. In such cases, when a consumer retrieves the available resources as PeeringCandidates, a parsing error occurs in the consumer's REAR Controller, resulting in a null value for the networkAuthorizations field. The following reports the log entries illustrating the error:

E0527 14:30:47.059078       1 forge.go:809] Error when parsing resource selector from source destination
E0527 14:30:47.059085       1 forge.go:823] Error when parsing source from network intent
E0527 14:30:47.059100       1 forge.go:850] Error when parsing denied communication from network authorizations

To resolve the problem, the proposed PR aligns the two distinct representations in favor of a unified one, simplifying mapping operations and eliminating the parsing error.

Thanks,
Francesco

@LorenzoMoro LorenzoMoro self-requested a review May 28, 2025 08:54
Copy link
Contributor

@LorenzoMoro LorenzoMoro left a comment

Choose a reason for hiding this comment

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

LGTM

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