argo

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenArgoCdHelmApplication

func GenArgoCdHelmApplication(app ArgoCdHelmApplication) (*v1alpha1.Application, error)

GenArgoCdApplication generates an ArgoCD Application

func GenGitDirAppSet

func GenGitDirAppSet(appSet GitDirApplicationSet) (*v1alpha1.ApplicationSet, error)

GenGitDirApplicationSet generates an ArgoCD Git Directory ApplicationSet that

func IsArgoRunning

func IsArgoRunning(client client.Client, ns string) bool

IsArgoRunning checks if ArgoCD is running. Best effort as it just checks to see if the namespace exists

Types

type ArgoCdHelmApplication

type ArgoCdHelmApplication struct {
	Name                 string
	Namespace            string
	DestinationNamespace string
	DestinationServer    string
	Project              string
	HelmChart            string
	HelmRepo             string
	HelmTargetRevision   string
	HelmValues           string
	HelmCreateNamespace  string
}

ArgoCdApplication is a struct that holds the ArgoCD Application

type GitDirApplicationSet

type GitDirApplicationSet struct {
	Namespace               string
	GitRepoURL              string
	GitRepoRevision         string
	GitIncludeDir           string
	GitExcludeDir           []string
	AppName                 string
	AppProject              string
	AppRepoURL              string
	AppTargetRevision       string
	AppPath                 string
	AppDestinationServer    string
	AppDestinationNamespace string
	SSHPrivateKey           string
	GitOpsRepo              string
}

ArgoCdGitApplicationSet is a struct that holds the ArgoCD Git ApplicationSet TODO: Make a Generic "ApplicationSet" struct that can be used generically (i.e. specify your generator)

Jump to

Keyboard shortcuts

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