poststarthooks

package
v0.0.3 Latest Latest
Warning

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

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

Documentation

Overview

Package poststarthooks executes post-start hook actions on sandbox pods that have just transitioned Starting → Running. It implements sandboxpool.SandboxReadyHook.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

Runner implements sandboxpool.SandboxReadyHook. It reads post-start hook actions from pod annotations and executes them after the sandbox transitions Starting → Running.

func NewRunner

func NewRunner(gatewayBaseURL string, clientset kubernetes.Interface, restConfig *rest.Config) *Runner

NewRunner creates a Runner. gatewayBaseURL may be empty (HTTP hooks are skipped). clientset / restConfig may be nil (Exec hooks are skipped).

func (*Runner) OnSandboxReady

func (r *Runner) OnSandboxReady(ctx context.Context, pod *corev1.Pod)

OnSandboxReady implements sandboxpool.SandboxReadyHook. It is called in a goroutine; errors are logged but never propagated.

Jump to

Keyboard shortcuts

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