Documentation
¶
Overview ¶
Package initializingworkspaces provides a sigs.k8s.io/multicluster-runtime provider implementation for interacting with initializing virtual workspace exposed by a kcp instance. This provider can be used for writing controllers that reconcile Workspaces in the Initializing phase.
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
// InitializerName is the name of the initializer to watch for in LogicalCluster.Status.Initializers
InitializerName string
}
Options are the options for creating a new instance of the initializing workspaces provider.
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider is a sigs.k8s.io/multicluster-runtime/pkg/multicluster.Provider that represents each logical cluster (in the kcp sense) having a specific initializer and exposed via the initializingworkspaces virtual workspace endpoint as a cluster in the sigs.k8s.io/multicluster-runtime sense.
func (*Provider) Get ¶
Get returns a cluster.Cluster by logical cluster name.