argocdagent

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvArgoCDPrincipalLogLevel                  = "ARGOCD_PRINCIPAL_LOG_LEVEL"
	EnvArgoCDPrincipalLogFormat                 = "ARGOCD_PRINCIPAL_LOG_FORMAT"
	EnvArgoCDPrincipalNamespace                 = "ARGOCD_PRINCIPAL_NAMESPACE"
	EnvArgoCDPrincipalAllowedNamespaces         = "ARGOCD_PRINCIPAL_ALLOWED_NAMESPACES"
	EnvArgoCDPrincipalNamespaceCreateEnable     = "ARGOCD_PRINCIPAL_NAMESPACE_CREATE_ENABLE"
	EnvArgoCDPrincipalNamespaceCreatePattern    = "ARGOCD_PRINCIPAL_NAMESPACE_CREATE_PATTERN"
	EnvArgoCDPrincipalNamespaceCreateLabels     = "ARGOCD_PRINCIPAL_NAMESPACE_CREATE_LABELS"
	EnvArgoCDPrincipalTLSServerAllowGenerate    = "ARGOCD_PRINCIPAL_TLS_SERVER_ALLOW_GENERATE"
	EnvArgoCDPrincipalJWTAllowGenerate          = "ARGOCD_PRINCIPAL_JWT_ALLOW_GENERATE"
	EnvArgoCDPrincipalAuth                      = "ARGOCD_PRINCIPAL_AUTH"
	EnvArgoCDPrincipalEnableWebSocket           = "ARGOCD_PRINCIPAL_ENABLE_WEBSOCKET"
	EnvArgoCDPrincipalEnableResourceProxy       = "ARGOCD_PRINCIPAL_ENABLE_RESOURCE_PROXY"
	EnvArgoCDPrincipalKeepAliveMinInterval      = "ARGOCD_PRINCIPAL_KEEP_ALIVE_MIN_INTERVAL"
	EnvArgoCDPrincipalRedisServerAddress        = "ARGOCD_PRINCIPAL_REDIS_SERVER_ADDRESS"
	EnvArgoCDPrincipalRedisCompressionType      = "ARGOCD_PRINCIPAL_REDIS_COMPRESSION_TYPE"
	EnvArgoCDPrincipalTLSSecretName             = "ARGOCD_PRINCIPAL_TLS_SECRET_NAME"
	EnvArgoCDPrincipalTLSServerRootCASecretName = "ARGOCD_PRINCIPAL_TLS_SERVER_ROOT_CA_SECRET_NAME"
	EnvArgoCDPrincipalResourceProxySecretName   = "ARGOCD_PRINCIPAL_RESOURCE_PROXY_SECRET_NAME"
	EnvArgoCDPrincipalResourceProxyCaSecretName = "ARGOCD_PRINCIPAL_RESOURCE_PROXY_CA_SECRET_NAME"
	EnvArgoCDPrincipalJwtSecretName             = "ARGOCD_PRINCIPAL_JWT_SECRET_NAME"
	EnvArgoCDPrincipalImage                     = "ARGOCD_PRINCIPAL_IMAGE"
	EnvRedisPassword                            = "REDIS_PASSWORD"
	PrincipalRedisPasswordKey                   = "admin.password"
	PrincipalRedisSecretnameSuffix              = "redis-initial-password" // #nosec G101
)

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

View Source
const (
	// PrincipalServiceHTTPSPort is the external port for the principal service
	PrincipalServiceHTTPSPort = 443
	// PrincipalServiceTargetPort is the target port for the principal service
	PrincipalServiceTargetPort = 8443
	// PrincipalServicePortName is the name of the HTTPS port
	PrincipalServicePortName = "https"
	// PrincipalMetricsServicePortName is the name of the metrics port
	PrincipalMetricsServicePortName = "metrics"
	// PrincipalMetricsServicePort is the external port for the principal metrics service
	PrincipalMetricsServicePort = 8000
	// PrincipalMetricsServiceTargetPort is the target port for the principal metrics service
	PrincipalMetricsServiceTargetPort = 8000
	// PrincipalRedisProxyServicePortName is the name of the Redis proxy port
	PrincipalRedisProxyServicePortName = "redis"
	// PrincipalRedisProxyServicePort is the external port for the principal Redis proxy service
	PrincipalRedisProxyServicePort = 6379
	// PrincipalRedisProxyServiceTargetPort is the target port for the principal Redis proxy service
	PrincipalRedisProxyServiceTargetPort = 6379
	// PrincipalResourceProxyServicePortName is the name of the resource proxy port
	PrincipalResourceProxyServicePortName = "resource-proxy"
	// PrincipalResourceProxyServicePort is the external port for the principal resource proxy service
	PrincipalResourceProxyServicePort = 9090
	// PrincipalResourceProxyServiceTargetPort is the target port for the principal resource proxy service
	PrincipalResourceProxyServiceTargetPort = 9090
	// PrincipalHealthzServicePortName is the name of the healthz port
	PrincipalHealthzServicePortName = "healthz"
	// PrincipalHealthzServicePort is the external port for the principal healthz service
	PrincipalHealthzServicePort = 8003
	// PrincipalHealthzServiceTargetPort is the target port for the principal healthz service
	PrincipalHealthzServiceTargetPort = 8003
)

Variables

This section is empty.

Functions

func ReconcilePrincipalClusterRoleBinding

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

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

func ReconcilePrincipalClusterRoles

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

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

func ReconcilePrincipalDeployment

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

ReconcilePrincipalDeployment reconciles the ArgoCD agent principal deployment. It creates, updates, or deletes the deployment based on the ArgoCD CR configuration.

func ReconcilePrincipalHealthzService added in v0.17.0

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

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

func ReconcilePrincipalMetricsService

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

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

func ReconcilePrincipalRedisProxyService

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

ReconcilePrincipalRedisProxyService reconciles the principal Redis proxy service for the ArgoCD agent. It creates, updates, or deletes the Redis proxy service based on the principal configuration.

func ReconcilePrincipalResourceProxyService added in v0.17.0

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

ReconcilePrincipalResourceProxyService reconciles the principal resource proxy service for the ArgoCD agent. It creates, updates, or deletes the resource proxy service based on the principal configuration.

func ReconcilePrincipalRole

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

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

func ReconcilePrincipalRoleBinding

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

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

func ReconcilePrincipalRoute added in v0.17.0

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

ReconcilePrincipalRoute reconciles the principal route for the ArgoCD agent. It creates, updates, or deletes the route based on the principal configuration.

func ReconcilePrincipalService

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

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

func ReconcilePrincipalServiceAccount

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

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

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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