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.