Skip to content

[Release-1.5] Use ClusterInfo from streaminfo to get clustername too#189

Merged
istio-testing merged 1 commit intoistio:release-1.5from
gargnupur:nup_ch6
Mar 21, 2020
Merged

[Release-1.5] Use ClusterInfo from streaminfo to get clustername too#189
istio-testing merged 1 commit intoistio:release-1.5from
gargnupur:nup_ch6

Conversation

@gargnupur
Copy link
Copy Markdown

Signed-off-by: gargnupur gargnupur@google.com

Remove files

Signed-off-by: gargnupur gargnupur@google.com

For an explanation of how to fill out the fields, please see the relevant section
in PULL_REQUESTS.md

Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
[Optional Fixes #Issue]
[Optional Deprecated:]

Signed-off-by: gargnupur <gargnupur@google.com>

Remove files

Signed-off-by: gargnupur <gargnupur@google.com>
return CelValue::CreateString(&info->upstreamHost()->cluster().name());
} else if (info && info->routeEntry()) {
return CelValue::CreateString(&info->routeEntry()->clusterName());
} else if (info && info->upstreamClusterInfo().has_value() &&
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Maybe make this the first clause since it's going to become the main way?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

For 1.6? don't want to add a new thing as main way to 1.5?

@istio-testing istio-testing merged commit ab0b214 into istio:release-1.5 Mar 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants