package validating
import "k8s.io/apiserver/pkg/admission/plugin/webhook/validating"
Package validating makes calls to validating (i.e., non-mutating) webhooks during the admission process.
Index ¶
Constants ¶
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 )
const ( // PluginName indicates the name of admission plug-in PluginName = "ValidatingAdmissionWebhook" )
Functions ¶
func Register ¶
Register registers a plugin
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.
Source Files ¶
dispatcher.go doc.go plugin.go
- Version
- v0.33.0 (latest)
- Published
- Apr 23, 2025
- Platform
- linux/amd64
- Imports
- 23 packages
- Last checked
- 30 minutes ago –
Tools for package owners.