Skip to content

add metadata about virtual services and destination rules#11060

Closed
rshriram wants to merge 3 commits intoistio:release-1.1from
rshriram:api_tracking
Closed

add metadata about virtual services and destination rules#11060
rshriram wants to merge 3 commits intoistio:release-1.1from
rshriram:api_tracking

Conversation

@rshriram
Copy link
Copy Markdown
Member

Signed-off-by: Shriram Rajagopalan shriramr@vmware.com

Signed-off-by: Shriram Rajagopalan <shriramr@vmware.com>
@istio-testing
Copy link
Copy Markdown
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rshriram

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

The pull request process is described here

Details 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

@rshriram
Copy link
Copy Markdown
Member Author

cc @douglas-reid / @kyessenov
this is what I meant.

@douglas-reid
Copy link
Copy Markdown
Contributor

Thanks for tackling this issue! This approach seems reasonable to me, though my understanding of the Pilot codebase is limited at best. It seems like we should be able to extract the attributes via plugin/mixer client.


// IstioMetadataKey is the key under which metadata is added to a route or cluster
// regarding the virtual service or destination rule used for each
IstioMetadataKey = "networking.istio.io"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

For EDS, this is just "istio". I think we can use "istio" here too (less space).

@kyessenov
Copy link
Copy Markdown
Contributor

Looks reasonable.
Is there something to-do for TCP routes?

@istio-testing istio-testing added the needs-rebase Indicates a PR needs to be rebased before being merged label Jan 18, 2019
Shriram Rajagopalan added 2 commits January 18, 2019 12:28
Signed-off-by: Shriram Rajagopalan <shriramr@vmware.com>
@istio-testing istio-testing removed the needs-rebase Indicates a PR needs to be rebased before being merged label Jan 21, 2019
@rshriram
Copy link
Copy Markdown
Member Author

@kyessenov / @douglas-reid could one of you take over this and get the tests, etc. working?

@istio-testing
Copy link
Copy Markdown
Collaborator

istio-testing commented Jan 21, 2019

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

Test name Commit Details Rerun command
prow/istio-integ-k8s-tests.sh fce4f28 link /test istio-integ-k8s-tests
Details

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.

Copy link
Copy Markdown
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.

Any tests or generated config examples?
Otherwise looks good.

@kyessenov
Copy link
Copy Markdown
Contributor

Same comment as Mandar: would be nice to capture the changes to xDS output in a test.
A follow up to capture the new metadata in the proxy is also necessary.

@rshriram
Copy link
Copy Markdown
Member Author

This is not adding functionality. Its just for mixer filter to extract info about the virtual service or destination rule being used.. Also the generated config will be very ugly [its proto struct]

@rshriram
Copy link
Copy Markdown
Member Author

A follow up to capture the new metadata in the proxy is also necessary.
I didn't sign up to augment the mixer filter in proxy to pickup the metadata from the cluster. :). That piece is left to you folks.

@rshriram
Copy link
Copy Markdown
Member Author

Will add tests in a few days but at this moment, this is low priority for me. This was a half hour hack during some meeting, to show you how it can be done. OTOH, if one of you would like to take this PR code and add tests, other embellishments, etc. please feel free to do so

@kyessenov
Copy link
Copy Markdown
Contributor

@rshriram Thanks for the change. Yes, it's' up to telemetry team to update proxy to take advantage of the fields. But it would be good to have tests that cover this feature, as a form of contract on the part of envoy config generation.

@istio-testing
Copy link
Copy Markdown
Collaborator

@rshriram: PR needs rebase.

Details

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.

@istio-testing istio-testing added the needs-rebase Indicates a PR needs to be rebased before being merged label Jan 27, 2019
@rshriram rshriram closed this Jan 29, 2019
@rshriram rshriram deleted the api_tracking branch December 6, 2019 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-rebase Indicates a PR needs to be rebased before being merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants