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

mixerplugin: deprecate attribute_for_mixer_proxy #10459

Merged
merged 2 commits into from
Dec 13, 2018

Conversation

kyessenov
Copy link
Contributor

@kyessenov kyessenov commented Dec 13, 2018

It turns out that attributes_for_mixer_proxy has been de-facto broken since around istio/proxy#1961

This PR removes it since it doesn't work, and replaces with NODE_UID and NODE_NAMESPACE per new style.

It also adds an integration test exercising the code path in envoy.

/cc @mandarjog
/cc @douglas-reid

Signed-off-by: Kuat Yessenov [email protected]

@@ -344,9 +347,6 @@ var (
Node: &model.Proxy{
ID: "pod2.ns2",
Type: model.Sidecar,
Metadata: map[string]string{
Copy link
Contributor

Choose a reason for hiding this comment

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

why is this metadata removed and not replaced with NODE_UID and NODE_NAMESPACE ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is mock metadata to satisfy the plugin interface. It has nothing to do with actual envoy metadata. There is an issue here, that the test combines inbound and outbound routes into one proxy, which is no longer possible with one UID per all configs, but that's for later.

Signed-off-by: Kuat Yessenov <[email protected]>
@kyessenov kyessenov force-pushed the attribute_for_mixer_proxy branch from e3a627a to c164a43 Compare December 13, 2018 04:37
@kyessenov
Copy link
Contributor Author

Ping @mandarjog .
Can we get this in before @irisdingbj and @rshriram 's PRs?
It helps with keeping feature coverage.

Copy link
Contributor

@mandarjog mandarjog left a comment

Choose a reason for hiding this comment

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

/lgtm

@istio-testing
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kyessenov, mandarjog

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@istio-testing istio-testing merged commit 6655e36 into istio:release-1.1 Dec 13, 2018
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.

4 participants