registry

package
v0.34.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

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

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) BeforeClusterDelete added in v0.31.0

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
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL