Skip to content

cli/command/system: remove BridgeNfIptables, BridgeNfIp6tables in tests#5696

Merged
akerouanton merged 1 commit intodocker:masterfrom
thaJeztah:remove_use_of_netfilter_fields
Dec 16, 2024
Merged

cli/command/system: remove BridgeNfIptables, BridgeNfIp6tables in tests#5696
akerouanton merged 1 commit intodocker:masterfrom
thaJeztah:remove_use_of_netfilter_fields

Conversation

@thaJeztah
Copy link
Member

This is a follow-up to 55e404e, which removed some warnings related to these fields.

These fields in the /info response were used to warn users if netfiltering was not enabled on the host when the daemon started. Starting with moby@db25b0d, detecting whether netfiltering is enabled now happens when needed, making the state that's detected at startup irrelevant.

These fields will therefore be deprecated in future, but we can start removing their use in tests.

- A picture of a cute animal (not mandatory but encouraged)

This is a follow-up to 55e404e, which
removed some warnings related to these fields.

These fields in the /info response were used to warn users if netfiltering
was not enabled on the host when the daemon started.  Starting with
[moby@db25b0d], detecting whether netfiltering  is enabled now
[happens when needed][1], making the state that's detected at startup
irrelevant.

These fields will therefore be deprecated in future, but we can start
removing their use in tests.

[moby@db25b0d]: moby/moby@db25b0d
[1]: https://github.com/moby/moby/blob/944e40350259f040950d871d402d848ff2a799bc/libnetwork/drivers/bridge/setup_bridgenetfiltering.go#L16-L77

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah added this to the 28.0.0 milestone Dec 14, 2024
@thaJeztah thaJeztah self-assigned this Dec 14, 2024
@codecov-commenter
Copy link

codecov-commenter commented Dec 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 59.54%. Comparing base (91d097e) to head (ffe0354).
Report is 4 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5696      +/-   ##
==========================================
+ Coverage   59.51%   59.54%   +0.02%     
==========================================
  Files         346      346              
  Lines       29379    29379              
==========================================
+ Hits        17486    17494       +8     
+ Misses      10923    10914       -9     
- Partials      970      971       +1     

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants