Skip to content

feat(destination): add resource metadata to responses#396

Merged
olix0r merged 2 commits intomainfrom
ver/profile-meta
Nov 5, 2024
Merged

feat(destination): add resource metadata to responses#396
olix0r merged 2 commits intomainfrom
ver/profile-meta

Conversation

@olix0r
Copy link
Member

@olix0r olix0r commented Nov 5, 2024

The destination service does no include resource coordinates, so the proxy must "guess" them by parsing hostnames, which is not particularly reliable or efficient.

This change updates the destination API so that profile responses may include resource reference to (1) parent Services, (2) ServiceProfile resources and (3) backend Services. Furthermore, the WeightedAddr type is updated to include a resource reference so that Pod coordinates may be referenced.

This metadata is not required to be set (for backwards compatibility).

The destination service does no include resource coordinates, so the proxy must
"guess" them by parsing hostnames, which is not particularly reliable or
efficient.

This change updates the destination API so that profile responses may include
resource reference to (1) parent Services, (2) ServiceProfile resources and (3)
backend Services. Furthermore, the WeightedAddr type is updated to include a
resource reference so that Pod coordinates may be referenced.

This metadata is not required to be set (for backwards compatibility).
@olix0r olix0r merged commit 2a2290c into main Nov 5, 2024
@olix0r olix0r deleted the ver/profile-meta branch November 5, 2024 18:42
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.

2 participants