mutatingwebhook

package
v0.11.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func Register

func Register(plugins *admission.Plugins)

Types

type Plugin

type Plugin struct {
	// Using validating plugin, for the dispatcher to use.
	// This plugins admit function will never be called.
	mutating.Plugin
	*webhook.WebhookDispatcher
}

func NewMutatingAdmissionWebhook added in v0.11.0

func NewMutatingAdmissionWebhook(configfile io.Reader) (*Plugin, error)

func (*Plugin) Admit

func (*Plugin) SetExternalKubeInformerFactory

func (p *Plugin) SetExternalKubeInformerFactory(f informers.SharedInformerFactory)

SetExternalKubeInformerFactory implements the WantsExternalKubeInformerFactory interface.

func (*Plugin) SetKubeInformers added in v0.11.0

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

Jump to

Keyboard shortcuts

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