Documentation
¶
Overview ¶
Package pathaware provides a sigs.k8s.io/multicluster-runtime provider implementation for interacting with APIExport virtual workspaces exposed by a kcp instance. This provider can be used for writing controllers that reconcile APIs exposed via APIExport objects.
// This is a meta wrapper provider around the apiexport provider, adding path-awareness // to the clusters it manages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
Provider is a sigs.k8s.io/multicluster-runtime/pkg/multicluster.Provider that represents each logical cluster (in the kcp sense) exposed via a APIExport virtual workspace as a cluster in the sigs.k8s.io/multicluster-runtime sense.
Core functionality is delegated to the apiexport.Provider, this wrapper just adds best effort path-awareness index to it via hooks.
func New ¶
New creates a new kcp virtual workspace provider. The provided rest.Config must point to a virtual workspace apiserver base path, i.e. up to but without the '/clusters/*' suffix. This information can be extracted from an APIExportEndpointSlice status.