Help us shape the future of Go! Take the 2026 Go Developer Survey

argocd

package
v0.1.20 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ApplicationGVR is the GroupVersionResource for ArgoCD applications
	ApplicationGVR = schema.GroupVersionResource{
		Group:    "argoproj.io",
		Version:  "v1alpha1",
		Resource: "applications",
	}
)

Common resource GVRs

Functions

func ApplySecretsFromFolder added in v0.1.4

func ApplySecretsFromFolder(client *utils.K8sClient, secretsFolder string, namespace string) error

ApplySecretsFromFolder applies all secret manifests from a folder using the Kubernetes API

Types

type ArgoCDInstallation

type ArgoCDInstallation struct {
	K8sClient         *utils.K8sClient
	Namespace         string
	Version           string
	ConfigPath        string
	ChartName         string
	ChartURL          string
	ChartRepoUsername string
	ChartRepoPassword string
}

func New

func New(client *utils.K8sClient, namespace string, version string, repoName string, repoURL string, repoUsername string, repoPassword string) *ArgoCDInstallation

func (*ArgoCDInstallation) AppsetGenerate

func (a *ArgoCDInstallation) AppsetGenerate(appSetPath string) (string, error)

AppsetGenerate runs 'argocd appset generate' on a file and returns the output

func (*ArgoCDInstallation) AppsetGenerateWithRetry added in v0.1.10

func (a *ArgoCDInstallation) AppsetGenerateWithRetry(appSetPath string, maxAttempts int) (string, error)

AppsetGenerateWithRetry runs 'argocd appset generate' on a file and returns the output with retry

func (*ArgoCDInstallation) EnsureArgoCdIsReady added in v0.1.7

func (a *ArgoCDInstallation) EnsureArgoCdIsReady() error

func (*ArgoCDInstallation) GetManifests

func (a *ArgoCDInstallation) GetManifests(appName string) (string, bool, error)

GetManifests returns the manifests for an application

func (*ArgoCDInstallation) GetManifestsWithRetry added in v0.1.10

func (a *ArgoCDInstallation) GetManifestsWithRetry(appName string, maxAttempts int) (string, bool, error)

GetManifestsWithRetry returns the manifests for an application with retry

func (*ArgoCDInstallation) Install

func (a *ArgoCDInstallation) Install(debug bool, secretsFolder string) (time.Duration, error)

func (*ArgoCDInstallation) OnlyLogin added in v0.1.11

func (a *ArgoCDInstallation) OnlyLogin() (time.Duration, error)

OnlyLogin performs only the login step without installing ArgoCD

func (*ArgoCDInstallation) RefreshApp

func (a *ArgoCDInstallation) RefreshApp(appName string) error

Jump to

Keyboard shortcuts

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