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

EnvoyFilter: http Route match #16146

Merged
merged 13 commits into from Aug 9, 2019
Merged

Conversation

rshriram
Copy link
Member

@rshriram rshriram commented Aug 8, 2019

Implements ability to match on HTTP Routes.

Singed-off-by: Shriram Rajagopalan rshriram@tetrate.io

Signed-off-by: Shriram Rajagopalan <rshriram@tetrate.io>
Signed-off-by: Shriram Rajagopalan <rshriram@tetrate.io>
@istio-testing istio-testing added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Aug 8, 2019
@googlebot googlebot added the cla: yes Set by the Google CLA bot to indicate the author of a PR has signed the Google CLA. label Aug 8, 2019
@@ -331,6 +334,15 @@ func translateRoute(push *model.PushContext, node *model.Proxy, in *networking.H
Metadata: util.BuildConfigInfoMetadata(virtualService.ConfigMeta),
}


Copy link
Contributor

Choose a reason for hiding this comment

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

File is not gofmt-ed with -s (from gofmt)

Suggested change

@@ -285,6 +324,24 @@ func TestApplyRouteConfigurationPatches(t *testing.T) {
{
Name: "foo.com",
Domains: []string{"domain"},
Routes: []*route.Route{
{
Name: "foo",
Copy link
Contributor

Choose a reason for hiding this comment

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

File is not gofmt-ed with -s (from gofmt)

doHttpRouteListOperation(proxy, patchContext, patches, routeConfiguration, virtualHost)
}

func doHttpRouteListOperation(proxy *model.Proxy, patchContext networking.EnvoyFilter_PatchContext,
Copy link
Contributor

Choose a reason for hiding this comment

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

func doHttpRouteListOperation should be doHTTPRouteListOperation (from golint)

}
}

func doHttpRouteOperation(proxy *model.Proxy, patchContext networking.EnvoyFilter_PatchContext,
Copy link
Contributor

Choose a reason for hiding this comment

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

func doHttpRouteOperation should be doHTTPRouteOperation (from golint)

Signed-off-by: Shriram Rajagopalan <rshriram@tetrate.io>
Signed-off-by: Shriram Rajagopalan <rshriram@tetrate.io>
Signed-off-by: Shriram Rajagopalan <rshriram@tetrate.io>
@istio-testing istio-testing added the needs-rebase Indicates a PR needs to be rebased before being merged label Aug 8, 2019
@istio-testing istio-testing removed the needs-rebase Indicates a PR needs to be rebased before being merged label Aug 8, 2019
Signed-off-by: Shriram Rajagopalan <rshriram@tetrate.io>
Signed-off-by: Shriram Rajagopalan <rshriram@tetrate.io>
Signed-off-by: Shriram Rajagopalan <rshriram@tetrate.io>
@istio-testing
Copy link
Collaborator

@rshriram: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
istio-pilot-multicluster-e2e-master f49f668 link /test istio-pilot-multicluster-e2e-master

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@rshriram rshriram merged commit fc69f3d into istio:master Aug 9, 2019
tobiasgiese pushed a commit to c445/istio that referenced this pull request Aug 13, 2019
* add names to http routes

Signed-off-by: Shriram Rajagopalan <rshriram@tetrate.io>

* vendor

* adding HTTP_ROUTES

Signed-off-by: Shriram Rajagopalan <rshriram@tetrate.io>

* lint and fixes

Signed-off-by: Shriram Rajagopalan <rshriram@tetrate.io>

* compile fixes

Signed-off-by: Shriram Rajagopalan <rshriram@tetrate.io>

* fixes

Signed-off-by: Shriram Rajagopalan <rshriram@tetrate.io>

* more fixes

Signed-off-by: Shriram Rajagopalan <rshriram@tetrate.io>

* fixes

Signed-off-by: Shriram Rajagopalan <rshriram@tetrate.io>

* final fix

Signed-off-by: Shriram Rajagopalan <rshriram@tetrate.io>
@rshriram rshriram deleted the envoyfilter_route branch December 6, 2019 19:03
howardjohn added a commit to howardjohn/istio that referenced this pull request Jan 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Set by the Google CLA bot to indicate the author of a PR has signed the Google CLA. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants