webhook

package
v1.9.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// HandlerMap contains all admission webhook handlers.
	HandlerMap = map[string]admission.Handler{}
)

Functions

func RegisterWebhookFlags

func RegisterWebhookFlags(pset *pflag.FlagSet)

func RunWebhookServer

func RunWebhookServer(
	config *rest.Config,
	kubeClient kubernetes.Interface,
	crdClient versioned.Interface,
	kubeInformer informers.SharedInformerFactory,
	crdInformer crdinformers.SharedInformerFactory,
	bceClient cloud.Interface,
	stopChan chan struct{},
	cniMode types.ContainerNetworkMode,
) error

Running this function will block the current coroutine

Types

type GateFunc

type GateFunc func() (enabled bool)

Directories

Path Synopsis
pod
psts

Jump to

Keyboard shortcuts

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