projects

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterProjectCleanupContributor added in v1.11.0

func RegisterProjectCleanupContributor(reg ProjectCleanupContributorRegistration)

RegisterProjectCleanupContributor adds a contributor to the global registry used by the project reconciler to perform cleanup when a project is deleted. It should be called before SetupReconcilerWithManager (e.g. at program startup).

func RegisterProjectSetupContributor added in v1.11.0

func RegisterProjectSetupContributor(reg ProjectSetupContributorRegistration)

RegisterProjectSetupContributor adds a contributor to the global registry used by the project reconciler to perform additional setup during project reconciliation. It should be called before SetupReconcilerWithManager (e.g. at program startup).

func RegisterRoleRulesContributor added in v1.11.0

func RegisterRoleRulesContributor(reg RoleRulesContributorRegistration)

RegisterRoleRulesContributor adds a contributor to the global registry used by the project reconciler when creating default project roles. It should be called before SetupReconcilerWithManager (e.g. at program startup).

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 ProjectCleanupContributorRegistration added in v1.11.0

type ProjectCleanupContributorRegistration = component.PredicateBasedRegistration[
	*kargoapi.Project,
	projectCleanupContributorPredicate,
	projectCleanupContributorFunc,
	struct{},
]

ProjectCleanupContributorRegistration associates a predicate with a contributor function for project cleanup.

type ProjectSetupContributorRegistration added in v1.11.0

type ProjectSetupContributorRegistration = component.PredicateBasedRegistration[
	*kargoapi.Project,
	projectSetupContributorPredicate,
	projectSetupContributorFunc,
	struct{},
]

ProjectSetupContributorRegistration associates a predicate with a contributor function for project setup.

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"`
}

func ReconcilerConfigFromEnv

func ReconcilerConfigFromEnv() ReconcilerConfig

type RoleRulesContributorRegistration added in v1.11.0

type RoleRulesContributorRegistration = component.PredicateBasedRegistration[
	string,
	roleRulesContributorPredicate,
	roleRulesContributorFunc,
	struct{},
]

RoleRulesContributorRegistration associates a predicate with a contributor function.

Jump to

Keyboard shortcuts

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