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 ¶
Types ¶
type Plugin ¶
Plugin is an implementation of admission.Interface.
func NewValidatingAdmissionWebhook ¶
NewValidatingAdmissionWebhook returns a generic admission webhook plugin.
func (*Plugin) Validate ¶
func (a *Plugin) Validate(ctx context.Context, attr admission.Attributes, o admission.ObjectInterfaces) error
Validate makes an admission decision based on the request attributes.
Click to show internal directories.
Click to hide internal directories.