argocd

package
v1.227.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: Apache-2.0 Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	DefaultRepoURL   = "https://argoproj.github.io/argo-helm"
	DefaultNamespace = "argocd"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ArgoCDResources

type ArgoCDResources interface {
	ApplyAll(ctx context.Context) error
}

func NewArgoCDResources

func NewArgoCDResources(clientset kubernetes.Interface, dataCenterId string, ociPassword string, ociRegistryURL string, gitPassword string) (ArgoCDResources, error)

type Installer

type Installer struct {
	InstallerConfig
	Helm      installer.HelmClient
	Resources ArgoCDResources
}

Installer holds the resolved configuration and initialized clients.

func NewInstaller

func NewInstaller(cfg InstallerConfig) (*Installer, error)

func (*Installer) Install

func (a *Installer) Install() error

Install is the top-level orchestrator. It delegates every Helm interaction to the HelmClient interface, keeping this function short and testable.

type InstallerConfig

type InstallerConfig struct {
	Version        string
	DatacenterId   string
	OciPassword    string
	OciRegistryURL string
	GitPassword    string
	FullInstall    bool
	ForceConflicts bool
	RepoURL        string
	ValueFiles     []string
	RESTConfig     *rest.Config
}

InstallerConfig holds all user-facing parameters for an ArgoCD install/upgrade.

type MockArgoCDResources

type MockArgoCDResources struct {
	mock.Mock
}

MockArgoCDResources is an autogenerated mock type for the ArgoCDResources type

func NewMockArgoCDResources

func NewMockArgoCDResources(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockArgoCDResources

NewMockArgoCDResources creates a new instance of MockArgoCDResources. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockArgoCDResources) ApplyAll

func (_mock *MockArgoCDResources) ApplyAll(ctx context.Context) error

ApplyAll provides a mock function for the type MockArgoCDResources

func (*MockArgoCDResources) EXPECT

type MockArgoCDResources_ApplyAll_Call

type MockArgoCDResources_ApplyAll_Call struct {
	*mock.Call
}

MockArgoCDResources_ApplyAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ApplyAll'

func (*MockArgoCDResources_ApplyAll_Call) Return

func (*MockArgoCDResources_ApplyAll_Call) Run

func (*MockArgoCDResources_ApplyAll_Call) RunAndReturn

type MockArgoCDResources_Expecter

type MockArgoCDResources_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockArgoCDResources_Expecter) ApplyAll

ApplyAll is a helper method to define mock.On call

  • ctx context.Context

Jump to

Keyboard shortcuts

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