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.
Click to show internal directories.
Click to hide internal directories.