Skip to content

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

@embik

Description

@embik

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions