mode

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: Apache-2.0 Imports: 1 Imported by: ? 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

Overview

Package mode defines the deployment shapes that fargocd supports.

The bridge can be configured to talk to an Argo CD that lives on the same cluster as the workload, or to an argocd-agent principal that lives on a remote cluster, using either the "autonomous" or "managed" agent mode described in https://argocd-agent.readthedocs.io/latest/concepts/agent-modes/.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mode

type Mode string

Mode identifies how fargocd should communicate with Argo CD.

const (
	// InCluster is the classic deployment: a regular Argo CD installation
	// runs on the same cluster as fargocd. The bridge writes Application
	// resources to that local Argo CD and the destination defaults to the
	// in-cluster API server.
	InCluster Mode = "in-cluster"

	// Autonomous corresponds to the argocd-agent "autonomous" mode. The
	// agent runs alongside the workload. fargocd writes Application
	// resources locally, the agent reconciles them against the local API
	// server, and any status changes are pushed back to the principal.
	Autonomous Mode = "autonomous"

	// Managed corresponds to the argocd-agent "managed" mode. The Argo CD
	// principal runs on a remote cluster. fargocd writes Application
	// resources to a namespace on the principal (typically named after the
	// workload cluster), and the agent on the workload cluster pulls them.
	Managed Mode = "managed"
)

func Parse

func Parse(s string) (Mode, error)

Parse validates a user-supplied mode string and returns the canonical Mode value, or an error if the input is not recognised.

func (Mode) RemotePrincipal

func (m Mode) RemotePrincipal() bool

RemotePrincipal reports whether the mode points at an Argo CD principal running on a different cluster than fargocd itself.

Jump to

Keyboard shortcuts

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