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

agent

package
v0.0.0-...-9387c5a Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	EnvArgoCDAgentServerAddress       = "ARGOCD_AGENT_REMOTE_SERVER"
	EnvArgoCDAgentServerPort          = "ARGOCD_AGENT_REMOTE_PORT"
	EnvArgoCDAgentLogLevel            = "ARGOCD_AGENT_LOG_LEVEL"
	EnvArgoCDAgentLogFormat           = "ARGOCD_AGENT_LOG_FORMAT"
	EnvArgoCDAgentNamespace           = "ARGOCD_AGENT_NAMESPACE"
	EnvArgoCDAgentTLSSecretName       = "ARGOCD_AGENT_TLS_SECRET_NAME" // #nosec G101
	EnvArgoCDAgentTLSInsecure         = "ARGOCD_AGENT_TLS_INSECURE"
	EnvArgoCDAgentTLSRootCASecretName = "ARGOCD_AGENT_TLS_ROOT_CA_SECRET_NAME" // #nosec G101
	EnvArgoCDAgentMode                = "ARGOCD_AGENT_MODE"
	EnvArgoCDAgentCreds               = "ARGOCD_AGENT_CREDS" // #nosec G101
	EnvArgoCDAgentEnableWebSocket     = "ARGOCD_AGENT_ENABLE_WEBSOCKET"
	EnvArgoCDAgentEnableCompression   = "ARGOCD_AGENT_ENABLE_COMPRESSION"
	EnvArgoCDAgentKeepAliveInterval   = "ARGOCD_AGENT_KEEP_ALIVE_PING_INTERVAL"
	EnvArgoCDAgentEnableResourceProxy = "ARGOCD_AGENT_ENABLE_RESOURCE_PROXY"
	EnvArgoCDAgentImage               = "ARGOCD_AGENT_IMAGE"
	EnvArgoCDAgentRedisAddress        = "REDIS_ADDR"
	EnvArgoCDAgentDestinationBasedMap = "ARGOCD_AGENT_DESTINATION_BASED_MAPPING"
	EnvArgoCDAgentCreateNamespace     = "ARGOCD_AGENT_CREATE_NAMESPACE"
	EnvArgoCDAgentAllowedNamespaces   = "ARGOCD_AGENT_ALLOWED_NAMESPACES"
	EnvArgoCDAgentLabelSelector       = "ARGOCD_AGENT_LABEL_SELECTOR"
)

These constants are environment variables that correspond to the environment variables used to configure Argo CD Agent's agent deployment, and should match the names exactly from the agent

View Source
const (
	// AgentMetricsServicePortName is the name of the metrics port
	AgentMetricsServicePortName = "metrics"
	// AgentMetricsServicePort is the external port for the agent metrics service
	AgentMetricsServicePort = 8181
	// AgentMetricsServiceTargetPort is the target port for the agent metrics service
	AgentMetricsServiceTargetPort = 8181
	// AgentHealthzServicePortName is the name of the healthz port
	AgentHealthzServicePortName = "healthz"
	// AgentHealthzServicePort is the external port for the agent healthz service
	AgentHealthzServicePort = 8002
	// AgentHealthzServiceTargetPort is the target port for the agent healthz service
	AgentHealthzServiceTargetPort = 8002
)

Variables

This section is empty.

Functions

func ReconcileAgentClusterRoleBinding

func ReconcileAgentClusterRoleBinding(client client.Client, compName string, sa *corev1.ServiceAccount, cr *argoproj.ArgoCD, scheme *runtime.Scheme) error

ReconcileAgentClusterRoleBinding reconciles a ClusterRoleBinding for the ArgoCD Agent's agent component. This function handles the creation, update, and deletion of ClusterRoleBindings based on the agent's enabled state.

func ReconcileAgentClusterRoles

func ReconcileAgentClusterRoles(client client.Client, compName string, cr *argoproj.ArgoCD, scheme *runtime.Scheme) (*v1.ClusterRole, error)

ReconcileAgentClusterRoles manages the lifecycle of a ClusterRole resource for the ArgoCD agent. This function creates, updates, or deletes the ClusterRole based on the agent's enabled status.

func ReconcileAgentDeployment

func ReconcileAgentDeployment(client client.Client, compName, saName string, cr *argoproj.ArgoCD, scheme *runtime.Scheme) error

ReconcileAgentDeployment reconciles the ArgoCD agent's agent deployment. It creates, updates, or deletes the deployment based on the ArgoCD CR configuration.

func ReconcileAgentHealthzService

func ReconcileAgentHealthzService(client client.Client, compName string, cr *argoproj.ArgoCD, scheme *runtime.Scheme) error

ReconcileAgentHealthzService reconciles the agent healthz service for the ArgoCD agent. It creates, updates, or deletes the healthz service based on the agent configuration.

func ReconcileAgentMetricsService

func ReconcileAgentMetricsService(client client.Client, compName string, cr *argoproj.ArgoCD, scheme *runtime.Scheme) error

ReconcileAgentMetricsService reconciles the agent metrics service for the ArgoCD agent. It creates, updates, or deletes the metrics service based on the agent configuration.

func ReconcileAgentRole

func ReconcileAgentRole(client client.Client, compName string, cr *argoproj.ArgoCD, scheme *runtime.Scheme) (*v1.Role, error)

ReconcileAgentRole manages the lifecycle of a Role resource for the ArgoCD agent. This function creates, updates, or deletes the Role based on the agent's enabled status.

func ReconcileAgentRoleBinding

func ReconcileAgentRoleBinding(client client.Client, compName string, sa *corev1.ServiceAccount, cr *argoproj.ArgoCD, scheme *runtime.Scheme) error

ReconcileAgentRoleBinding reconciles a RoleBinding for the ArgoCD Agent's agent component. This function handles the creation, update, and deletion of RoleBindings based on the agent's enabled state.

func ReconcileAgentServiceAccount

func ReconcileAgentServiceAccount(client client.Client, compName string, cr *argoproj.ArgoCD, scheme *runtime.Scheme, imagePullSecrets []corev1.LocalObjectReference) (*corev1.ServiceAccount, error)

ReconcileAgentServiceAccount reconciles the service account for the ArgoCD agent component. It handles creation, deletion, and updates of the service account based on the agent configuration.

func ReconcileAgentServiceMonitor

func ReconcileAgentServiceMonitor(client client.Client, compName string, cr *argoproj.ArgoCD, scheme *runtime.Scheme, prometheusEnabled bool) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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