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) (*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.

              Source Files