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

Automated cherry pick of #7012: Filter out the hostNetwork Pods locally on Linux (#7012) #7020

Conversation

wenyingd
Copy link
Contributor

Cherry pick of #7012 on release-2.2.

#7012: Filter out the hostNetwork Pods locally on Linux (#7012)

For details on the cherry pick process, see the cherry pick requests page.

This change is to resolve the issue that "spec.hostNetwork" is not supported as
Pod's field selector since K8s v1.28, so we may hit issues if antrea run on a
cluster with version [1.19, 1.27] .

The fix is to remove the field selector "spec.hostNetwork" in the Pod list
options, and locally filter out the hostNetwork Pods on Linux. This fix includes
changes in both CNIServer and flow-aggregator.

Signed-off-by: Wenying Dong <wenyingd@vmware.com>
@wenyingd wenyingd added the kind/cherry-pick Categorizes issue or PR as related to the cherry-pick of a bug fix from the main branch to a release label Feb 24, 2025
@wenyingd
Copy link
Contributor Author

/test-all
/test-windows-all

@antoninbas
Copy link
Contributor

/test-conformance

@antoninbas antoninbas merged commit 69593a9 into antrea-io:release-2.2 Feb 24, 2025
59 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/cherry-pick Categorizes issue or PR as related to the cherry-pick of a bug fix from the main branch to a release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants