validating

package
v0.23.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2021 License: Apache-2.0 Imports: 20 Imported by: 82

Documentation

Overview

Package validating makes calls to validating (i.e., non-mutating) webhooks during the admission process.

Index

Constants

View Source
const (
	// ValidatingAuditAnnotationPrefix is a prefix for keeping noteworthy
	// validating audit annotations.
	ValidatingAuditAnnotationPrefix = "validating.webhook.admission.k8s.io/"
	// ValidatingAuditAnnotationFailedOpenKeyPrefix in an annotation indicates
	// the validating webhook failed open when the webhook backend connection
	// failed or returned an internal server error.
	ValidatingAuditAnnotationFailedOpenKeyPrefix = "failed-open." + ValidatingAuditAnnotationPrefix
)
View Source
const (
	// PluginName indicates the name of admission plug-in
	PluginName = "ValidatingAdmissionWebhook"
)

Variables

This section is empty.

Functions

func Register

func Register(plugins *admission.Plugins)

Register registers a plugin

Types

type Plugin

type Plugin struct {
	*generic.Webhook
}

Plugin is an implementation of admission.Interface.

func NewValidatingAdmissionWebhook

func NewValidatingAdmissionWebhook(configFile io.Reader) (*Plugin, error)

NewValidatingAdmissionWebhook returns a generic admission webhook plugin.

func (*Plugin) Validate

Validate makes an admission decision based on the request attributes.

Jump to

Keyboard shortcuts

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