webhook

package
v3.9.9 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: Apache-2.0 Imports: 53 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// VwhName is the metadata.name of the Gatekeeper ValidatingWebhookConfiguration.
	VwhName = "gatekeeper-validating-webhook-configuration"
	// MwhName is the metadata.name of the Gatekeeper MutatingWebhookConfiguration.
	MwhName = "gatekeeper-mutating-webhook-configuration"
)

AddToManagerFuncs is a list of functions to add all Controllers to the Manager.

Functions

func AddLabelWebhook

func AddLabelWebhook(mgr manager.Manager, _ *constraintclient.Client, _ *process.Excluder, mutationSystem *mutation.System) error

AddLabelWebhook registers the label webhook server with the manager.

func AddMutatingWebhook

func AddMutatingWebhook(mgr manager.Manager, client *constraintclient.Client, processExcluder *process.Excluder, mutationSystem *mutation.System) error

AddMutatingWebhook registers the mutating webhook server with the manager.

func AddPolicyWebhook

func AddPolicyWebhook(mgr manager.Manager, opa *constraintclient.Client, processExcluder *process.Excluder, _ *mutation.System) error

AddPolicyWebhook registers the policy webhook server with the manager.

func AddToManager

func AddToManager(m manager.Manager, opa *constraintclient.Client, processExcluder *process.Excluder, mutationSystem *mutation.System) error

AddToManager adds all Controllers to the Manager.

func AppendMutationWebhookIfEnabled

func AppendMutationWebhookIfEnabled(webhooks []rotator.WebhookInfo) []rotator.WebhookInfo

func AppendValidationWebhookIfEnabled

func AppendValidationWebhookIfEnabled(webhooks []rotator.WebhookInfo) []rotator.WebhookInfo

func NewTLSChecker

func NewTLSChecker(certDir string, port int) func(*http.Request) error

Types

type StatsReporter

type StatsReporter interface {
	ReportValidationRequest(ctx context.Context, response requestResponse, d time.Duration) error
	ReportMutationRequest(ctx context.Context, response requestResponse, d time.Duration) error
}

StatsReporter reports webhook metrics.

Jump to

Keyboard shortcuts

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