controller

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: Apache-2.0 Imports: 31 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// FinalizerName ensures the bridge can clean up the Argo CD Application
	// before the originating HelmRelease is removed.
	FinalizerName = "fargocd.appscode.com/finalizer"

	// HelmReleaseAnnotation links an Argo CD Application back to the
	// HelmRelease that produced it. The value is "<namespace>/<name>".
	HelmReleaseAnnotation = "fargocd.appscode.com/helmrelease"

	// AgentNameLabel is set on Applications in managed mode so the
	// argocd-agent principal can route them to the correct workload cluster.
	AgentNameLabel = "argocd.argoproj.io/agent-name"

	// DefaultRequeueAfter is used when a transient condition (such as a
	// dependency not being healthy yet) makes us re-enqueue.
	DefaultRequeueAfter = 30 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HelmReleaseReconciler

type HelmReleaseReconciler struct {
	// Client is connected to the cluster that hosts the HelmRelease objects.
	client.Client

	// Scheme used by the local manager.
	Scheme *runtime.Scheme

	// ArgoClient is connected to the cluster that hosts Argo CD. In
	// InCluster and Autonomous mode this is the same cluster as Client. In
	// Managed mode it is the remote principal.
	ArgoClient client.Client

	// Mode controls how Applications are constructed and where they are
	// written.
	Mode mode.Mode

	// ArgoNamespace, if set, overrides automatic discovery of the Argo CD
	// namespace.
	ArgoNamespace string

	// DestinationServer is the value written into Application.Spec.Destination.Server.
	// Defaults to https://kubernetes.default.svc.
	DestinationServer string

	// DestinationName is the value written into Application.Spec.Destination.Name.
	// Most useful in Managed mode where the principal references workload
	// clusters by symbolic name.
	DestinationName string

	// Project is the Argo CD project assigned to generated Applications.
	Project string

	// ClusterName identifies the workload cluster. Required in Managed mode;
	// optional otherwise. When non-empty it is used both as the suffix for
	// the Application name (so multiple clusters can share one principal
	// without colliding) and as the agent label value.
	ClusterName string
	// contains filtered or unexported fields
}

HelmReleaseReconciler watches FluxCD HelmRelease objects and projects each of them into an Argo CD Application on the cluster reached by ArgoClient.

func (*HelmReleaseReconciler) Reconcile

func (r *HelmReleaseReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile implements the controller-runtime contract.

func (*HelmReleaseReconciler) SetupWithManager

func (r *HelmReleaseReconciler) SetupWithManager(mgr, argoMgr ctrl.Manager) error

SetupWithManager wires watches for HelmRelease, HelmRepository, the Argo CD Application that mirrors each HelmRelease, and the argocd-server Service used for namespace auto-discovery.

Jump to

Keyboard shortcuts

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