Documentation
¶
Index ¶
- Variables
- func ApplySecretsFromFolder(client *utils.K8sClient, secretsFolder string, namespace string) error
- type ArgoCDInstallation
- func (a *ArgoCDInstallation) AppsetGenerate(appSetPath string) (string, error)
- func (a *ArgoCDInstallation) AppsetGenerateWithRetry(appSetPath string, maxAttempts int) (string, error)
- func (a *ArgoCDInstallation) EnsureArgoCdIsReady() error
- func (a *ArgoCDInstallation) GetManifests(appName string) (string, bool, error)
- func (a *ArgoCDInstallation) GetManifestsWithRetry(appName string, maxAttempts int) (string, bool, error)
- func (a *ArgoCDInstallation) Install(debug bool, secretsFolder string) (time.Duration, error)
- func (a *ArgoCDInstallation) OnlyLogin() (time.Duration, error)
- func (a *ArgoCDInstallation) RefreshApp(appName string) error
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 ¶
Types ¶
type ArgoCDInstallation ¶
type ArgoCDInstallation struct {
K8sClient *utils.K8sClient
Namespace string
Version string
ConfigPath string
ChartName string
ChartURL string
}
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) OnlyLogin ¶ added in v0.1.11
func (a *ArgoCDInstallation) OnlyLogin() (time.Duration, error)
func (*ArgoCDInstallation) RefreshApp ¶
func (a *ArgoCDInstallation) RefreshApp(appName string) error
Click to show internal directories.
Click to hide internal directories.