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

example for resolving a logical cluster to a workspace path #62

Open
embik opened this issue Feb 5, 2025 · 0 comments
Open

example for resolving a logical cluster to a workspace path #62

embik opened this issue Feb 5, 2025 · 0 comments

Comments

@embik
Copy link
Member

embik commented Feb 5, 2025

We want to build a simple snippet (a one file main.go) that allows to resolve a logical cluster ID to a workspace path. For that, we need to fetch the respective LogicalCluster object and extract the kcp.io/path annotation value and return it.

Important: This snippet has to work against a virtual workspace (that claims LogicalClusters) but also against kcp directly, e.g. when run as system:masters (or as someone with sufficient permissions in that respective logical cluster).

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

No branches or pull requests

1 participant