Documentation
¶
Overview ¶
Package manager exposes the OCM AddOn manager subcommand, which ships the embedded fargocd chart to every selected ManagedCluster (spoke).
Index ¶
Constants ¶
const ( AddonName = "fargocd" AgentName = "fargocd" AgentManifestsDir = "agent-manifests/fargocd" AddonInstallationNamespace = "kubeops" )
Variables ¶
var FS embed.FS
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 ¶
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