argocd

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: May 15, 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
}

func New

func New(client *utils.K8sClient, namespace string, version string, configPath 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) 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) Install

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

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