manager

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: 37 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 manager exposes the OCM AddOn manager subcommand, which ships the embedded fargocd chart to every selected ManagedCluster (spoke).

Index

Constants

View Source
const (
	AddonName                  = "fargocd"
	AgentName                  = "fargocd"
	AgentManifestsDir          = "agent-manifests/fargocd"
	AddonInstallationNamespace = "kubeops"
)

Variables

Functions

func GetConfigValues

func GetConfigValues(opts *ManagerOptions) (addonfactory.GetValuesFunc, error)

GetConfigValues returns the addon-framework GetValues func that renders per-ManagedCluster values for the embedded fargocd chart.

Hub-wide flags become argocd.* keys; the per-spoke clusterName is taken from cluster.Name; on OpenShift spokes the chart's runAsUser / fsGroup are cleared so it falls back to the project's SCC range.

func NewManagerCommand

func NewManagerCommand() *cobra.Command

NewManagerCommand returns the `fargocd manager` Cobra subcommand.

Types

type ManagerOptions

type ManagerOptions struct {
	RegistryFQDN string

	Mode              string
	ArgoNamespace     string
	DestinationServer string
	DestinationName   string
	Project           string

	// Propagated to every spoke as argocd.kubeconfig. Required when
	// Mode=managed and ArgoKubeconfigSecret is empty.
	ArgoKubeconfigFile string
	// Pre-created per-spoke Secret holding the principal kubeconfig;
	// mutually exclusive with ArgoKubeconfigFile.
	ArgoKubeconfigSecret string
}

ManagerOptions are the hub-side flags controlling how each spoke is rendered; map onto `argocd.*` chart values, falling through when empty.

func NewManagerOptions

func NewManagerOptions() *ManagerOptions

func (*ManagerOptions) AddFlags

func (s *ManagerOptions) AddFlags(fs *pflag.FlagSet)

func (*ManagerOptions) Validate

func (s *ManagerOptions) Validate() []error

Jump to

Keyboard shortcuts

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