components

package
v1.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cleanup

func Cleanup(
	ctx context.Context,
	mgmtClient client.Client,
	cluster clusterInterface,
	labelSelector *metav1.LabelSelector,
	namespace string,
) error

func Reconcile

func Reconcile(
	ctx context.Context,
	mgmtClient client.Client,
	rgnlClient client.Client,
	cluster clusterInterface,
	restConfig *rest.Config,
	release *kcmv1.Release,
	opts ReconcileComponentsOpts,
) (bool, error)

Types

type ReconcileComponentsOpts

type ReconcileComponentsOpts struct {
	// KubeConfigRef is a reference to the Secret containing the kubeconfig
	// of the target cluster where components will be installed. If unset,
	// the component will be installed on the current cluster.
	KubeConfigRef *fluxmeta.SecretKeyReference
	// Labels defines additional labels to apply to the created HelmReleases.
	Labels map[string]string

	// Namespace is the namespace to install components in.
	Namespace string
	// GlobalRegistry is the URL of the global registry to be passed to components values.
	GlobalRegistry string
	// RegistryCertSecretName is the name of the secret with CA certificate of the global registry
	// to be passed to components values.
	RegistryCertSecretName string

	// CreateNamespace tells the Helm install action to create the namespace if it does not exist yet.
	CreateNamespace bool
	// CertManagerInstalled indicates whether cert-manager is installed in the cluster.
	CertManagerInstalled bool
	// DefaultHelmTimeout is the timeout duration for Helm install or upgrade operations.
	DefaultHelmTimeout time.Duration
}

type StatusAccumulator

type StatusAccumulator struct {
	Components             map[string]kcmv1.ComponentStatus
	CompatibilityContracts map[string]kcmv1.CompatibilityContracts
	Providers              kcmv1.Providers
}

Jump to

Keyboard shortcuts

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