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

projects

package
v1.10.16 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: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupReconcilerWithManager

func SetupReconcilerWithManager(
	ctx context.Context,
	kargoMgr manager.Manager,
	cfg ReconcilerConfig,
) error

SetupReconcilerWithManager initializes a reconciler for Project resources and registers it with the provided Manager.

Types

type ReconcilerConfig

type ReconcilerConfig struct {
	ManageControllerRoleBindings bool   `envconfig:"MANAGE_CONTROLLER_ROLE_BINDINGS" default:"true"`
	KargoNamespace               string `envconfig:"KARGO_NAMESPACE" default:"kargo"`
	MaxConcurrentReconciles      int    `envconfig:"MAX_CONCURRENT_PROJECT_RECONCILES" default:"4"`

	ManageExtendedPermissions bool `envconfig:"MANAGE_EXTENDED_PERMISSIONS" default:"false"`

	ManageOrchestrator             bool   `envconfig:"MANAGE_ORCHESTRATOR" default:"false"`
	OrchestratorServiceAccountName string `envconfig:"ORCHESTRATOR_SERVICE_ACCOUNT_NAME" default:""`
	OrchestratorClusterRoleName    string `envconfig:"ORCHESTRATOR_CLUSTER_ROLE_NAME" default:""`
	TokenManagerClusterRoleName    string `envconfig:"TOKEN_MANAGER_CLUSTER_ROLE_NAME" default:""`

	ControlPlaneServiceAccountName string `envconfig:"CONTROL_PLANE_SERVICE_ACCOUNT_NAME" default:""`
	ControlPlaneClusterRoleName    string `envconfig:"CONTROL_PLANE_CLUSTER_ROLE_NAME" default:""`

	ManagerServiceAccountName string `envconfig:"MANAGER_SERVICE_ACCOUNT_NAME" default:""`
	ManagerClusterRoleName    string `envconfig:"MANAGER_CLUSTER_ROLE_NAME" default:""`
	ManagedResourceNamespace  string `envconfig:"MANAGED_RESOURCE_NAMESPACE" default:""`

	ArgoCDServiceAccountName string `envconfig:"ARGOCD_SERVICE_ACCOUNT_NAME" default:""`
	ArgoCDRoleName           string `envconfig:"ARGOCD_ROLE_NAME" default:""`
	ArgoCDClusterRoleName    string `envconfig:"ARGOCD_CLUSTER_ROLE_NAME" default:""`
	ArgoCDNamespace          string `envconfig:"ARGOCD_NAMESPACE" default:"argocd"`
	ArgoCDWatchNamespaceOnly bool   `envconfig:"ARGOCD_WATCH_ARGOCD_NAMESPACE_ONLY" default:"false"`
}

func ReconcilerConfigFromEnv

func ReconcilerConfigFromEnv() ReconcilerConfig

Jump to

Keyboard shortcuts

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