Documentation
¶
Index ¶
- func RegisterProjectCleanupContributor(reg ProjectCleanupContributorRegistration)
- func RegisterProjectSetupContributor(reg ProjectSetupContributorRegistration)
- func RegisterRoleRulesContributor(reg RoleRulesContributorRegistration)
- func SetupReconcilerWithManager(ctx context.Context, kargoMgr manager.Manager, cfg ReconcilerConfig) error
- type ProjectCleanupContributorRegistration
- type ProjectSetupContributorRegistration
- type ReconcilerConfig
- type RoleRulesContributorRegistration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterProjectCleanupContributor ¶
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 ¶
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 ¶
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 ¶
type ProjectCleanupContributorRegistration = component.PredicateBasedRegistration[ *kargoapi.Project, projectCleanupContributorPredicate, projectCleanupContributorFunc, struct{}, ]
ProjectCleanupContributorRegistration associates a predicate with a contributor function for project cleanup.
type ProjectSetupContributorRegistration ¶
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 ¶
type RoleRulesContributorRegistration = component.PredicateBasedRegistration[ string, roleRulesContributorPredicate, roleRulesContributorFunc, struct{}, ]
RoleRulesContributorRegistration associates a predicate with a contributor function.