Documentation
¶
Overview ¶
Package registry provides a handler for managing a registry addon in clusters. The clusters will also be configured to use the registry as a Containerd mirror (done in a different handler).
Index ¶
- type RegistryHandler
- func (r *RegistryHandler) AfterControlPlaneInitialized(ctx context.Context, req *runtimehooksv1.AfterControlPlaneInitializedRequest, ...)
- func (r *RegistryHandler) BeforeClusterCreate(ctx context.Context, req *runtimehooksv1.BeforeClusterCreateRequest, ...)
- func (r *RegistryHandler) BeforeClusterDelete(ctx context.Context, req *runtimehooksv1.BeforeClusterDeleteRequest, ...)
- func (r *RegistryHandler) BeforeClusterUpgrade(ctx context.Context, req *runtimehooksv1.BeforeClusterUpgradeRequest, ...)
- func (r *RegistryHandler) Name() string
- type RegistryProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RegistryHandler ¶
type RegistryHandler struct {
ProviderHandler map[string]RegistryProvider
// contains filtered or unexported fields
}
func New ¶
func New( c ctrlclient.Client, handlers map[string]RegistryProvider, ) *RegistryHandler
func (*RegistryHandler) AfterControlPlaneInitialized ¶
func (r *RegistryHandler) AfterControlPlaneInitialized( ctx context.Context, req *runtimehooksv1.AfterControlPlaneInitializedRequest, resp *runtimehooksv1.AfterControlPlaneInitializedResponse, )
func (*RegistryHandler) BeforeClusterCreate ¶
func (r *RegistryHandler) BeforeClusterCreate( ctx context.Context, req *runtimehooksv1.BeforeClusterCreateRequest, resp *runtimehooksv1.BeforeClusterCreateResponse, )
func (*RegistryHandler) BeforeClusterDelete ¶ added in v0.31.0
func (r *RegistryHandler) BeforeClusterDelete( ctx context.Context, req *runtimehooksv1.BeforeClusterDeleteRequest, resp *runtimehooksv1.BeforeClusterDeleteResponse, )
func (*RegistryHandler) BeforeClusterUpgrade ¶
func (r *RegistryHandler) BeforeClusterUpgrade( ctx context.Context, req *runtimehooksv1.BeforeClusterUpgradeRequest, resp *runtimehooksv1.BeforeClusterUpgradeResponse, )
func (*RegistryHandler) Name ¶
func (r *RegistryHandler) Name() string
type RegistryProvider ¶
type RegistryProvider interface {
Setup(
ctx context.Context,
registryVar v1alpha1.RegistryAddon,
cluster *clusterv1.Cluster,
log logr.Logger,
) error
Apply(
ctx context.Context,
registryVar v1alpha1.RegistryAddon,
cluster *clusterv1.Cluster,
log logr.Logger,
) error
Cleanup(
ctx context.Context,
registryVar v1alpha1.RegistryAddon,
cluster *clusterv1.Cluster,
log logr.Logger,
) error
}
Click to show internal directories.
Click to hide internal directories.