webhooks

package
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2026 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateCAData added in v0.35.0

func ValidateCAData(caData []byte) error

ValidateCAData validates that caData is either empty or a PEM bundle consisting of one or more "CERTIFICATE" blocks, each parseable as an X.509 certificate, with no trailing non-PEM data.

func ValidateRBACName added in v0.35.0

func ValidateRBACName(name string) []string

ValidateRBACName is exported to allow types outside of the RBAC API group to reuse this validation logic Minimal validation of names for roles and bindings. Identical to the validation for Openshift. See: * https://github.com/kubernetes/kubernetes/blob/60db507b279ce45bd16ea3db49bf181f2aeb3c3d/pkg/api/validation/name.go * https://github.com/openshift/origin/blob/388478c40e751c4295dcb9a44dd69e5ac65d0e3b/pkg/api/helpers.go Source: https://github.com/kubernetes/kubernetes/blob/df11db1c0f08fab3c0baee1e5ce6efbf816af7f1/pkg/apis/rbac/validation/validation.go#L28C1-L34C2

Types

type TerminalMutator

type TerminalMutator struct {
	Log logr.Logger

	// Decoder decodes objects
	Decoder admission.Decoder
}

TerminalMutator handles Terminal

func (*TerminalMutator) Handle

Handle handles admission requests.

type TerminalValidator

type TerminalValidator struct {
	Client client.Client
	Log    logr.Logger
	Config *v1alpha1.ControllerManagerConfiguration

	// Decoder decodes objects
	Decoder admission.Decoder
	// contains filtered or unexported fields
}

TerminalValidator handles Terminal

func (*TerminalValidator) Handle

Handle handles admission requests.

Jump to

Keyboard shortcuts

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