apihook

package
v0.0.0-...-d75ad3c Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterTriggerRunAPIHook

func RegisterTriggerRunAPIHook(logger *zap.Logger, apiHandler api.Handler, scheme *runtime.Scheme, defaultEnv string)

RegisterTriggerRunAPIHook registers the API hook that validates and defaults the TriggerRun spec on create and update, refuses to delete a TriggerRun that is still live, defaults the environment label on creation, stamps the owning Pipeline as the controller ownerReference, and stamps the owning Pipeline's type and manifest type as labels. The Pipeline-related stamps are best-effort: if the owning Pipeline can't be resolved, creation proceeds without them. defaultEnv is the operator-configured default (api.UnspecifiedEnvironment is used instead when the operator has configured none), mirroring RegisterPipelineRunAPIHook.

Types

This section is empty.

Jump to

Keyboard shortcuts

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