Expand description
Lifecycle hook resolution and execution.
Ported from internal/lifecyclehooks/{types,hooks}.go. See
PORT_NOTES.md.
Enums§
- Hook
Type - Ported from
HookType. - Hooks
Error - Errors ported from
RunHooks’sfmt.Errorfwraps.
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_fileis a temporary kubeconfig (created and owned by the caller). WhenSome, it is exposed to each hook process viaKUBECONFIGandKUBECACHEDIRenvironment variables, so that kubectl/helm invocations inside the hook target the Caproni-managed cluster. WhenNone(e.g. duringedit_mode_preparehooks that run before the cluster is available), hooks run without cluster env vars set.