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

feat(windows): Make local clusters use localhostIP instead of wildcardIP #3893

Merged
merged 1 commit into from
Jul 30, 2021

Conversation

davinci26
Copy link

@davinci26 davinci26 commented Jul 29, 2021

Windows (unlike linux) does not allow sockets to connect to wildcardIP (0.0.0.0).

So Envoy clusters that use address 0.0.0.0 will fail on Windows workers. With this PR
we change those tests to use localhostIP.

Validated through unit tests and the CI. Fixes #3882

Signed-off-by: Sotiris Nanopoulos [email protected]

Windows (unlike linux) do not allow sockets to connect to wildcardIP (0.0.0.0).

So Envoy clusters that use address 0.0.0.0 will fail on Windows workers. With this PR
we change those tests to use localhostIP.

Validated through unit tests and the CI. Fixes openservicemesh#3882

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

Codecov Report

Merging #3893 (2c6f2cb) into main (3b95a47) will increase coverage by 0.04%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3893      +/-   ##
==========================================
+ Coverage   67.59%   67.63%   +0.04%     
==========================================
  Files         201      201              
  Lines       11173    11337     +164     
==========================================
+ Hits         7552     7668     +116     
- Misses       3571     3618      +47     
- Partials       50       51       +1     
Flag Coverage Δ
unittests 67.63% <100.00%> (+0.04%) ⬆️

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

Impacted Files Coverage Δ
pkg/envoy/cds/cluster.go 94.73% <100.00%> (ø)
pkg/injector/envoy_config_health_probes.go 93.13% <100.00%> (ø)
pkg/envoy/types.go 33.33% <0.00%> (-16.67%) ⬇️
pkg/certificate/providers/config.go 46.90% <0.00%> (-1.95%) ⬇️
pkg/configurator/methods.go 71.81% <0.00%> (-1.92%) ⬇️
...icate/providers/certmanager/certificate_manager.go 85.13% <0.00%> (-1.49%) ⬇️
pkg/catalog/dispatcher.go 36.66% <0.00%> (-1.27%) ⬇️
...certificate/providers/vault/certificate_manager.go 62.72% <0.00%> (-0.83%) ⬇️
cmd/osm-controller/osm-controller.go 13.33% <0.00%> (-0.09%) ⬇️
pkg/injector/envoy_container.go 100.00% <0.00%> (ø)
... and 9 more

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 3b95a47...2c6f2cb. Read the comment docs.

@davinci26 davinci26 marked this pull request as ready for review July 30, 2021 00:13
@davinci26 davinci26 requested a review from a team as a code owner July 30, 2021 00:13
@shashankram shashankram merged commit 66b58eb into openservicemesh:main Jul 30, 2021
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.

On Windows Envoy clusters should not use address 0.0.0.0
4 participants