initializer

package
v0.30.7 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 3 Imported by: 53

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PluginInitializer

type PluginInitializer struct {
	// contains filtered or unexported fields
}

PluginInitializer is used for initialization of the webhook admission plugin.

func NewPluginInitializer

func NewPluginInitializer(
	authenticationInfoResolverWrapper webhook.AuthenticationInfoResolverWrapper,
	serviceResolver webhook.ServiceResolver,
) *PluginInitializer

NewPluginInitializer constructs new instance of PluginInitializer

func (*PluginInitializer) Initialize

func (i *PluginInitializer) Initialize(plugin admission.Interface)

Initialize checks the initialization interfaces implemented by each plugin and provide the appropriate initialization data

type ServiceResolver

type ServiceResolver interface {
	ResolveEndpoint(namespace, name string, port int32) (*url.URL, error)
}

ServiceResolver knows how to convert a service reference into an actual location.

type WantsAuthenticationInfoResolverWrapper

type WantsAuthenticationInfoResolverWrapper interface {
	SetAuthenticationInfoResolverWrapper(wrapper webhook.AuthenticationInfoResolverWrapper)
	admission.InitializationValidator
}

WantsAuthenticationInfoResolverWrapper defines a function that wraps the standard AuthenticationInfoResolver to allow the apiserver to control what is returned as auth info

type WantsServiceResolver

type WantsServiceResolver interface {
	SetServiceResolver(webhook.ServiceResolver)
}

WantsServiceResolver defines a function that accepts a ServiceResolver for admission plugins that need to make calls to services.

Jump to

Keyboard shortcuts

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