validatingwebhook

package
v0.31.5 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: Apache-2.0 Imports: 23 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	PluginName = "apis.kcp.io/ValidatingWebhook"
)

Variables

This section is empty.

Functions

func Register

func Register(plugins *admission.Plugins)

func SetClusterAnnotation added in v0.25.0

func SetClusterAnnotation(obj metav1.Object, clusterName logicalcluster.Name) func()

SetClusterAnnotation sets the cluster annotation on the given object to the given clusterName, returning an undo function that can be used to revert the change.

Types

type Plugin

type Plugin struct {
	*admission.Handler
	// contains filtered or unexported fields
}

func NewValidatingAdmissionWebhook

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

func (*Plugin) SetKcpInformers added in v0.20.0

func (p *Plugin) SetKcpInformers(local, global kcpinformers.SharedInformerFactory)

func (*Plugin) SetKubeClusterClient added in v0.20.0

func (p *Plugin) SetKubeClusterClient(client kcpkubernetesclientset.ClusterInterface)

func (*Plugin) SetKubeInformers added in v0.11.0

func (p *Plugin) SetKubeInformers(local, global kcpkubernetesinformers.SharedInformerFactory)

func (*Plugin) SetServerShutdownChannel added in v0.29.0

func (p *Plugin) SetServerShutdownChannel(ch <-chan struct{})

func (*Plugin) Validate

func (*Plugin) ValidateInitialization added in v0.20.0

func (p *Plugin) ValidateInitialization() error

Jump to

Keyboard shortcuts

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