You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
The text was updated successfully, but these errors were encountered:
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 respectiveLogicalCluster
object and extract thekcp.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 assystem:masters
(or as someone with sufficient permissions in that respective logical cluster).The text was updated successfully, but these errors were encountered: