Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
// Scheme is the scheme to use for the provider. If this is nil, it defaults
// to the client-go scheme.
Scheme *runtime.Scheme
// WildcardCache is the wildcard cache to use for the provider. If this is
// nil, a new wildcard cache will be created for the given rest.Config.
WildcardCache mcpcache.WildcardCache
// ObjectToWatch is the object type that the provider watches via a /clusters/*
// wildcard endpoint to extract information about logical clusters joining and
// leaving the "fleet" of (logical) clusters in kcp. If this is nil, it defaults
// to [apisv1alpha1.APIBinding]. This might be useful when using this provider
// against custom virtual workspaces that are not the APIExport one but share
// the same endpoint semantics.
ObjectToWatch client.Object
// Log is the logger used to write any logs.
Log *logr.Logger
// contains filtered or unexported fields
}
Options are the options for creating a new instance of the apiexport provider.
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
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 the APIExport status (deprecated) or an APIExportEndpointSlice status.
Click to show internal directories.
Click to hide internal directories.