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

feat(inspect): api for retrieving service hostnames #11865

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

jakubdyszkiewicz
Copy link
Contributor

@jakubdyszkiewicz jakubdyszkiewicz commented Oct 25, 2024

Motivation

We want to see hostnames of Mesh*Service in the Global CP.

Implementation information

While we could add new KDSService to retrieve stats of a resource in specific zones and then aggregate this an easier (less expensive to execute, faster, don't depend on the zone) option is to calculate the hostname. We have all the resources in global CP already (because HostnameGenerator from zone is synced to global for visibility). It's just a matter of relabeling properly.

Supporting documentation

Fix #10618

@jakubdyszkiewicz jakubdyszkiewicz added the ci/skip-test PR: Don't run unit and e2e tests (maybe this is just a doc change) label Oct 25, 2024
@jakubdyszkiewicz jakubdyszkiewicz force-pushed the inspect-hostnames branch 2 times, most recently from fc4908d to b1294d2 Compare October 28, 2024 10:56
@jakubdyszkiewicz jakubdyszkiewicz marked this pull request as ready for review October 28, 2024 11:07
@jakubdyszkiewicz jakubdyszkiewicz requested a review from a team as a code owner October 28, 2024 11:07
@jakubdyszkiewicz jakubdyszkiewicz requested review from michaelbeaumont and slonka and removed request for a team October 28, 2024 11:07
@jakubdyszkiewicz jakubdyszkiewicz removed the ci/skip-test PR: Don't run unit and e2e tests (maybe this is just a doc change) label Oct 28, 2024
api/openapi/specs/api.yaml Outdated Show resolved Hide resolved
api/openapi/specs/api.yaml Show resolved Hide resolved
api/openapi/specs/api.yaml Outdated Show resolved Hide resolved
api/openapi/specs/api.yaml Outdated Show resolved Hide resolved
pkg/api-server/inspect_mesh_service.go Outdated Show resolved Hide resolved
Signed-off-by: Jakub Dyszkiewicz <[email protected]>
Signed-off-by: Jakub Dyszkiewicz <[email protected]>
Signed-off-by: Jakub Dyszkiewicz <[email protected]>
Signed-off-by: Jakub Dyszkiewicz <[email protected]>
Signed-off-by: Jakub Dyszkiewicz <[email protected]>
Signed-off-by: Jakub Dyszkiewicz <[email protected]>
required: true
description: The type of the service
- in: path
name: serviceName
Copy link
Contributor

Choose a reason for hiding this comment

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

We agree that this doesn't support URIs yet?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

URIs?

Copy link
Contributor

Choose a reason for hiding this comment

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

unique resource identifier (<mesh>_<name>_<namespace>_<zone>_<shortType>_<optionalSection>)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

then no. At least not for now

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.

Ability to see VIPs/Hostname on global CP
2 participants