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

feat(kuma-cp) Refactor matching logic to common function #479

Merged
merged 2 commits into from
Dec 10, 2019

Conversation

jakubdyszkiewicz
Copy link
Contributor

Summary

Refactor matching logic to common function so it can be used in traffic logging and other new policies.

@jakubdyszkiewicz jakubdyszkiewicz requested review from yskopets and a team December 10, 2019 17:08
// ServiceName is a convenience type alias to clarify the meaning of string value.
type ServiceName = string

// RouteMap holds the most specific ConnectionPolicy for each outbound interface of a Dataplane.
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's fix typo RouteMap => ConnectionPolicyMap

}
matchMap := policy.SelectOutboundConnectionPolicies(dataplane, policies)
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's rename matchMap => policyMap

}
}

matchMap := ConnectionPolicyMap{}
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's rename matchMap => policyMap

@jakubdyszkiewicz jakubdyszkiewicz merged commit 30fd4b8 into master Dec 10, 2019
@jakubdyszkiewicz jakubdyszkiewicz deleted the feature/matching-refactor branch December 10, 2019 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants