validatingwebhook

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

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) (undoFn 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) 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