syncer

package
v0.35.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	*options.GlobalOptions
}

type RegistrySyncer

type RegistrySyncer struct {
	// contains filtered or unexported fields
}

func New

func New(
	c ctrlclient.Client,
	cfg *Config,
	helmChartInfoGetter *config.HelmChartGetter,
) *RegistrySyncer

func (*RegistrySyncer) Apply

func (n *RegistrySyncer) Apply(
	ctx context.Context,
	cluster *clusterv1.Cluster,
	log logr.Logger,
) error

Apply applies the registry syncer on the target cluster.

func (*RegistrySyncer) Cleanup

func (n *RegistrySyncer) Cleanup(
	ctx context.Context,
	cluster *clusterv1.Cluster,
	log logr.Logger,
) error

Cleanup cleans up the HCP on the management cluster for the cluster. The syncer is applied against the management cluster can be in a different namespace from cluster. Since cross-namespace owner references are not allowed, we need to delete the HelmChartProxy directly.

Jump to

Keyboard shortcuts

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