argocd

package
v0.1.20-experimental Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2025 License: Apache-2.0 Imports: 22 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
	// contains filtered or unexported fields
}

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, error)

GetManifests returns the manifests for an application using the ArgoCD API

func (*ArgoCDInstallation) GetManifestsWithRetry added in v0.1.10

func (a *ArgoCDInstallation) GetManifestsWithRetry(appName string, maxAttempts int) (string, 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

func (*ArgoCDInstallation) StopPortForward

func (a *ArgoCDInstallation) StopPortForward()

StopPortForward stops the port forward to ArgoCD server if it's active

Jump to

Keyboard shortcuts

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