webhook

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(ctx context.Context, opts Options) error

Register the approver-policy Webhook endpoints against the controller-manager Manager.

Types

type Options

type Options struct {
	// Log is a shared logger for the shared webhook.
	Log logr.Logger

	// Webhooks is the list of registered Webhooks that will be used to build the
	// shared webhook server.
	Webhooks []approver.Webhook

	// Manager is the shared controller-runtime manager used by this
	// approver-policy instance. The webhook will register its endpoints and
	// runnables against.
	Manager manager.Manager
}

Options are options for running the wehook.

Jump to

Keyboard shortcuts

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