argo

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package argo is the backend that installs through Argo CD: one Application per component, pointing at the component's published chart, synced automatically. kubepkg keeps deciding versions, order, requirements and revisions; Argo CD does the applying and shows the releases next to everything else it manages.

Index

Constants

This section is empty.

Variables

View Source
var ErrRollbackUnsupported = errors.New("the argo backend cannot roll back to an earlier revision")

ErrRollbackUnsupported is returned by Rollback: packages applied through Argo CD are recovered by a forward fix.

Functions

func ApplicationName

func ApplicationName(c backend.Component) string

ApplicationName is unique per release: Applications share one namespace.

Types

type Backend

type Backend struct {
	Client client.Client
	// Secrets reads the platform values Secret, which Argo CD cannot use
	// itself; its values are passed on inline.
	Secrets kubernetes.Interface
	// Namespace is where Argo CD watches Applications. Default argocd.
	Namespace string
	// Project is the AppProject the Applications belong to. Default default.
	Project string
	// Server is the destination cluster. Default the cluster Argo CD runs in.
	Server string
}

Backend writes Argo CD Applications.

func (*Backend) Apply

func (b *Backend) Apply(ctx context.Context, c backend.Component) (backend.State, error)

Apply creates or updates the Application.

func (*Backend) Name

func (b *Backend) Name() string

Name implements backend.Backend.

func (*Backend) Render

func (b *Backend) Render(c backend.Component, values map[string]any) (*unstructured.Unstructured, error)

Render builds the Application for a component with its final values. Exported for the render command.

func (*Backend) Rollback

Rollback is not supported by this backend.

func (*Backend) Status

func (b *Backend) Status(ctx context.Context, c backend.Component) (backend.State, error)

Status reads the Application's sync and health.

func (*Backend) Uninstall

func (b *Backend) Uninstall(ctx context.Context, c backend.Component) error

Uninstall deletes the Application; its finalizer makes Argo CD remove what it deployed. Uninstall deletes the Application and reports ErrUninstalling until Argo CD has removed what it deployed and the Application is gone.

Jump to

Keyboard shortcuts

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