webhook

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: Apache-2.0 Imports: 18 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

	// WebhookCertificatesDir is the directory that holds the certificate and key
	// (tls.crt, tls.key) which are used to server the Webhook server. The
	// TLS proivder waits for these files to become available before returning
	// from New().
	WebhookCertificatesDir string

	// CASecretNamespace is the namespace that the
	// cert-manager-approver-policy-tls Secret is stored.
	CASecretNamespace string

	// ServiceName is the name of the service that exposes the webhook server.
	// This name will be used as the DNS SAN entry to the webhook's serving
	// certificate.
	ServiceName string

	// 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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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