Documentation ¶
Index ¶
Constants ¶
View Source
const (
ControllerName = "kcp-virtual-apiexport-api-reconciler"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIReconciler ¶
type APIReconciler struct {
// contains filtered or unexported fields
}
APIReconciler is a controller watching APIExports and APIResourceSchemas, and updates the API definitions driving the virtual workspace.
func NewAPIReconciler ¶
func NewAPIReconciler( kcpClusterClient kcpclient.ClusterInterface, apiResourceSchemaInformer apisinformer.APIResourceSchemaInformer, apiExportInformer apisinformer.APIExportInformer, createAPIDefinition CreateAPIDefinitionFunc, ) (*APIReconciler, error)
NewAPIReconciler returns a new controller which reconciles APIResourceImport resources and delegates the corresponding SyncTargetAPI management to the given SyncTargetAPIManager.
func (*APIReconciler) GetAPIDefinitionSet ¶
func (c *APIReconciler) GetAPIDefinitionSet(_ context.Context, key dynamiccontext.APIDomainKey) (apidefinition.APIDefinitionSet, bool, error)
func (*APIReconciler) ShutDown ¶
func (c *APIReconciler) ShutDown()
func (*APIReconciler) Start ¶
func (c *APIReconciler) Start(ctx context.Context)
type CreateAPIDefinitionFunc ¶
type CreateAPIDefinitionFunc func(apiResourceSchema *apisv1alpha1.APIResourceSchema, version string, identityHash string, additionalLabelRequirements labels.Requirements) (apidefinition.APIDefinition, error)
Click to show internal directories.
Click to hide internal directories.