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

Remove incorrect AntreaProxy warning on Windows #6242

Conversation

antoninbas
Copy link
Contributor

The code was logging an incorrect warning about AntreaProxy being disabled. This is is because checkUnsupportedFeatures was in charge of the check, but o.enableAntreaProxy is set later in the validation chain. To avoid the issue, we introduce a new function for platform-specific checks, validateConfigForPlatform, which runs after all other validations and after all fields in the Options struct have been set.

We also replace the warning message with an error message (but we do not fail Agent initialization) and we add a check for proxyAll.

The code was logging an incorrect warning about AntreaProxy being
disabled. This is is because checkUnsupportedFeatures was in charge of
the check, but o.enableAntreaProxy is set later in the validation
chain. To avoid the issue, we introduce a new function for
platform-specific checks, validateConfigForPlatform, which runs after
all other validations and after all fields in the Options struct have
been set.

We also replace the warning message with an error message (but we do not
fail Agent initialization) and we add a check for proxyAll.

Signed-off-by: Antonin Bas <antonin.bas@broadcom.com>
Copy link
Member

@tnqn tnqn left a comment

Choose a reason for hiding this comment

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

LGTM

@antoninbas
Copy link
Contributor Author

/skip-all

Copy link
Contributor

@wenyingd wenyingd left a comment

Choose a reason for hiding this comment

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

LGTM

@antoninbas antoninbas added the action/release-note Indicates a PR that should be included in release notes. label Apr 19, 2024
@antoninbas
Copy link
Contributor Author

It's pretty minor, so I don't think I will backport this. It doesn't impact functionality.

@antoninbas antoninbas added area/OS/windows Issues or PRs related to the Windows operating system. kind/bug Categorizes issue or PR as related to a bug. labels Apr 19, 2024
@antoninbas antoninbas merged commit 064922c into antrea-io:main Apr 19, 2024
51 of 54 checks passed
@antoninbas antoninbas deleted the remove-invalid-AntreaProxy-warning-on-windows branch April 19, 2024 04:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action/release-note Indicates a PR that should be included in release notes. area/OS/windows Issues or PRs related to the Windows operating system. kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants