Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

injector: rename iptables chains for clarity #4379

Merged
merged 1 commit into from
Dec 2, 2021

Conversation

shashankram
Copy link
Member

Description:
Renames the iptables chains and prefixes the
custom chains with OSM_ to indicate these
chains are owned by OSM.

It renames the custom chains as follows:
PROXY_INBOUND -> OSM_PROXY_INBOUND
PROXY_OUTPUT -> OSM_PROXY_OUTBOUND
PROXY_IN_REDIRECT -> OSM_PROXY_IN_REDIRECT
PROXY_REDIRECT -> OSM_PROXY_OUT_REDIRECT

Testing done:

  • CI

Affected area:

Functional Area
Sidecar Injection [X]

Please answer the following questions with yes/no.

  1. Does this change contain code from or inspired by another project? no

    • Did you notify the maintainers and provide attribution?
  2. Is this a breaking change? no

Renames the iptables chains and prefixes the
custom chains with `OSM_` to indicate these
chains are owned by OSM.

It renames the custom chains as follows:
PROXY_INBOUND -> OSM_PROXY_INBOUND
PROXY_OUTPUT -> OSM_PROXY_OUTBOUND
PROXY_IN_REDIRECT -> OSM_PROXY_IN_REDIRECT
PROXY_REDIRECT -> OSM_PROXY_OUT_REDIRECT

Signed-off-by: Shashank Ram <[email protected]>
@codecov-commenter
Copy link

Codecov Report

Merging #4379 (4222fb2) into main (332b52b) will increase coverage by 0.07%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4379      +/-   ##
==========================================
+ Coverage   69.21%   69.29%   +0.07%     
==========================================
  Files         212      212              
  Lines       14450    14455       +5     
==========================================
+ Hits        10002    10016      +14     
+ Misses       4396     4387       -9     
  Partials       52       52              
Flag Coverage Δ
unittests 69.29% <100.00%> (+0.07%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/catalog/fake.go 33.33% <ø> (+0.18%) ⬆️
pkg/k8s/mock_controller_generated.go 0.00% <ø> (ø)
pkg/k8s/types.go 100.00% <ø> (ø)
pkg/envoy/cds/response.go 82.35% <100.00%> (ø)
pkg/envoy/lds/response.go 76.00% <100.00%> (ø)
pkg/injector/init_container.go 100.00% <100.00%> (ø)
pkg/injector/iptables.go 100.00% <100.00%> (ø)
pkg/k8s/client.go 93.01% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6d99e8a...4222fb2. Read the comment docs.

@shashankram shashankram marked this pull request as ready for review December 1, 2021 16:58
@shashankram shashankram merged commit 8dccabb into openservicemesh:main Dec 2, 2021
@shashankram shashankram deleted the iptables-rename branch December 2, 2021 17:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants