Help us shape the future of Go! Take the 2026 Go Developer Survey

argocd

package
v0.45.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AddonName indicates the unique name of this addon.
	AddonName clusters.AddonName = "argocd"

	// DefaultNamespace indicates the default namespace this addon will be deployed to.
	DefaultNamespace = "argocd"

	// DefaultServer is the default server value for Applications and AppProjects.
	DefaultServer = "https://kubernetes.default.svc"
)

Variables

This section is empty.

Functions

func New

func New() clusters.Addon

Types

type Addon

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

func (*Addon) CreateAppProject

func (a *Addon) CreateAppProject(ctx context.Context, proj *unstructured.Unstructured) error

CreateAppProject takes an (unstructured) AppProject and creates it.

func (*Addon) CreateApplication

func (a *Addon) CreateApplication(ctx context.Context, app *unstructured.Unstructured) error

CreateApplication takes an (unstructured) Application and creates it.

func (*Addon) Delete

func (a *Addon) Delete(ctx context.Context, cluster clusters.Cluster) error

func (*Addon) DeleteAppProject

func (a *Addon) DeleteAppProject(ctx context.Context, proj string) error

DeleteAppProject takes an AppProject name and deletes it.

func (*Addon) DeleteApplication

func (a *Addon) DeleteApplication(ctx context.Context, proj string) error

DeleteApplication takes an Application name and deletes it.

func (*Addon) Dependencies

func (a *Addon) Dependencies(_ context.Context, _ clusters.Cluster) []clusters.AddonName

func (*Addon) Deploy

func (a *Addon) Deploy(ctx context.Context, cluster clusters.Cluster) error

func (*Addon) DumpDiagnostics

func (a *Addon) DumpDiagnostics(context.Context, clusters.Cluster) (map[string][]byte, error)

func (*Addon) Name

func (a *Addon) Name() clusters.AddonName

func (*Addon) Ready

func (a *Addon) Ready(ctx context.Context, cluster clusters.Cluster) ([]runtime.Object, bool, error)

type Builder

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

Builder is a configuration tool to generate ArgoCD cluster addons.

func NewBuilder

func NewBuilder() *Builder

NewBuilder provides a new Builder object for configuring ArgoCD cluster addons.

func (*Builder) Build

func (b *Builder) Build() *Addon

Build generates a new kong cluster.Addon which can be loaded and deployed into a test Environment's cluster.Cluster.

func (*Builder) WithNamespace

func (b *Builder) WithNamespace(namespace string) *Builder

WithNamespace sets the addon namespace

func (*Builder) WithVersion

func (b *Builder) WithVersion(version semver.Version) *Builder

WithVersion configures the specific version of ArgoCD to deploy.

Jump to

Keyboard shortcuts

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