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

catalog: Refactor buildOutboundPolicies() #3794

Merged
merged 4 commits into from
Jul 19, 2021

Conversation

draychev
Copy link
Contributor

This PR changes

  • from if !mc.isTrafficSplitApexService(destService) {
  • to if mc.isTrafficSplitApexService(destService) { + continue

** no functional code changes**

This PR simply removes a level of indentation!

@draychev draychev requested a review from a team as a code owner July 19, 2021 21:29
Copy link
Member

@shashankram shashankram left a comment

Choose a reason for hiding this comment

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

Hoping the refactored code is well tested already.

pkg/catalog/outbound_traffic_policies.go Show resolved Hide resolved
pkg/catalog/outbound_traffic_policies.go Outdated Show resolved Hide resolved
@codecov-commenter
Copy link

codecov-commenter commented Jul 19, 2021

Codecov Report

Merging #3794 (0dcad51) into main (7ecbf42) will decrease coverage by 0.00%.
The diff coverage is 74.07%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3794      +/-   ##
==========================================
- Coverage   68.42%   68.41%   -0.01%     
==========================================
  Files         188      188              
  Lines       10748    10749       +1     
==========================================
  Hits         7354     7354              
- Misses       3345     3346       +1     
  Partials       49       49              
Flag Coverage Δ
unittests 68.41% <74.07%> (-0.01%) ⬇️

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

Impacted Files Coverage Δ
pkg/catalog/outbound_traffic_policies.go 85.23% <74.07%> (+0.07%) ⬆️
...icate/providers/certmanager/certificate_manager.go 85.91% <0.00%> (-0.71%) ⬇️

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 7ecbf42...0dcad51. Read the comment docs.

@draychev draychev merged commit 17bfa18 into openservicemesh:main Jul 19, 2021
@draychev draychev deleted the multicluster-22 branch July 19, 2021 22:49
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.

6 participants