Skip to main content

Module lifecyclehooks

Module lifecyclehooks 

Source
Expand description

Lifecycle hook resolution and execution.

Ported from internal/lifecyclehooks/{types,hooks}.go. See PORT_NOTES.md.

Enums§

HookType
Ported from HookType.
HooksError
Errors ported from RunHooks’s fmt.Errorf wraps.

Functions§

filter_hooks
Ported from FilterHooks.
resolve_reloader_hooks
Ported from ResolveReloaderHooks.
resolve_repository_hooks
Ported from ResolveRepositoryHooks. Resolves all hooks in the repository and all associated reloaders.
run_hooks
Ported from RunHooks. kubeconfig_file is a temporary kubeconfig (created and owned by the caller). When Some, it is exposed to each hook process via KUBECONFIG and KUBECACHEDIR environment variables, so that kubectl/helm invocations inside the hook target the Caproni-managed cluster. When None (e.g. during edit_mode_prepare hooks that run before the cluster is available), hooks run without cluster env vars set.