argocd

package
v1.204.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

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 NewArgoCDResourcesWithRESTConfig added in v1.204.0

func NewArgoCDResourcesWithRESTConfig(dataCenterId string, ociPassword string, ociRegistryURL string, gitPassword string, restConfig *rest.Config) (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