argocdinstaller

package
v5.99.1 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package argocdinstaller installs Argo CD via Helm.

Index

Constants

View Source
const (
	// SopsAgeSecretName is the name of the Kubernetes secret used for SOPS Age decryption.
	SopsAgeSecretName = "sops-age"
)

Variables

This section is empty.

Functions

func EnsureDefaultResources

func EnsureDefaultResources(ctx context.Context, kubeconfig string, timeout time.Duration) error

EnsureDefaultResources waits for the core Argo CD components to become ready.

func EnsureSopsAgeSecret added in v5.85.0

func EnsureSopsAgeSecret(
	ctx context.Context,
	kubeconfig string,
	clusterCfg *v1alpha1.Cluster,
) error

EnsureSopsAgeSecret creates or updates the sops-age secret in the argocd namespace if SOPS is enabled and an Age key is available.

func ShouldEnableSOPS added in v5.85.0

func ShouldEnableSOPS(sops v1alpha1.SOPS) bool

ShouldEnableSOPS returns true if SOPS CMP support should be enabled for ArgoCD. The decision mirrors EnsureSopsAgeSecret: explicitly disabled → false, explicitly enabled → true, auto-detect → true only if an Age key is available.

Types

type Installer added in v5.30.0

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

Installer installs or upgrades Argo CD via its Helm OCI chart.

It implements installer.Installer semantics (Install/Uninstall) so it can be orchestrated by cluster lifecycle flows.

func NewInstaller added in v5.30.0

func NewInstaller(client helm.Interface, timeout time.Duration, sopsEnabled bool) *Installer

NewInstaller creates a new Argo CD installer instance. When sopsEnabled is true the chart is deployed with a CMP sidecar that transparently decrypts SOPS-encrypted manifests using an Age key.

func (*Installer) Images added in v5.30.0

func (a *Installer) Images(ctx context.Context) ([]string, error)

Images returns the container images used by Argo CD.

func (*Installer) Install added in v5.30.0

func (a *Installer) Install(ctx context.Context) error

Install installs or upgrades Argo CD via its Helm chart.

func (*Installer) Uninstall added in v5.30.0

func (a *Installer) Uninstall(ctx context.Context) error

Uninstall removes the Helm release for Argo CD.

Jump to

Keyboard shortcuts

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