admission

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PluginInitializer added in v1.7.0

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

func NewPluginInitializer

func NewPluginInitializer(
	internalClient internalclientset.Interface,
	externalClient clientset.Interface,
	sharedInformers informers.SharedInformerFactory,
	authz authorizer.Authorizer,
	cloudConfig []byte,
	restMapper meta.RESTMapper,
	quotaRegistry quota.Registry,
) *PluginInitializer

NewPluginInitializer constructs new instance of PluginInitializer TODO: switch these parameters to use the builder pattern or just make them all public, this construction method is pointless boilerplate.

func (*PluginInitializer) Initialize added in v1.7.0

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

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

func (*PluginInitializer) SetClientCert added in v1.7.0

func (i *PluginInitializer) SetClientCert(cert, key []byte) *PluginInitializer

SetClientCert sets the client cert & key (identity used for calling out to web hooks) which is needed by some plugins.

func (*PluginInitializer) SetProxyTransport added in v1.8.0

func (i *PluginInitializer) SetProxyTransport(proxyTransport *http.Transport) *PluginInitializer

SetProxyTransport sets the proxyTransport which is needed by some plugins.

func (*PluginInitializer) SetServiceResolver added in v1.7.0

func (i *PluginInitializer) SetServiceResolver(s ServiceResolver) *PluginInitializer

SetServiceResolver sets the service resolver which is needed by some plugins.

type ServiceResolver added in v1.7.0

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

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

type WantsAuthorizer

type WantsAuthorizer interface {
	SetAuthorizer(authorizer.Authorizer)
	admission.Validator
}

WantsAuthorizer defines a function which sets Authorizer for admission plugins that need it.

type WantsClientCert added in v1.7.0

type WantsClientCert interface {
	SetClientCert(cert, key []byte)
}

WantsClientCert defines a fuction that accepts a cert & key for admission plugins that need to make calls and prove their identity.

type WantsCloudConfig

type WantsCloudConfig interface {
	SetCloudConfig([]byte)
}

WantsCloudConfig defines a function which sets CloudConfig for admission plugins that need it.

type WantsExternalKubeClientSet added in v1.7.0

type WantsExternalKubeClientSet interface {
	SetExternalKubeClientSet(clientset.Interface)
	admission.Validator
}

WantsExternalKubeClientSet defines a function which sets ClientSet for admission plugins that need it

type WantsInternalKubeClientSet

type WantsInternalKubeClientSet interface {
	SetInternalKubeClientSet(internalclientset.Interface)
	admission.Validator
}

WantsInternalKubeClientSet defines a function which sets ClientSet for admission plugins that need it

type WantsInternalKubeInformerFactory

type WantsInternalKubeInformerFactory interface {
	SetInternalKubeInformerFactory(informers.SharedInformerFactory)
	admission.Validator
}

WantsInternalKubeInformerFactory defines a function which sets InformerFactory for admission plugins that need it

type WantsProxyTransport added in v1.8.0

type WantsProxyTransport interface {
	SetProxyTransport(proxyTransport *http.Transport)
}

WantsProxyTransport defines a fuction that accepts a proxy transport for admission plugins that need to make calls to pods.

type WantsQuotaRegistry added in v1.7.0

type WantsQuotaRegistry interface {
	SetQuotaRegistry(quota.Registry)
	admission.Validator
}

WantsQuotaRegistry defines a function which sets quota registry for admission plugins that need it.

type WantsRESTMapper added in v1.7.0

type WantsRESTMapper interface {
	SetRESTMapper(meta.RESTMapper)
}

WantsRESTMapper defines a function which sets RESTMapper for admission plugins that need it.

type WantsServiceResolver added in v1.7.0

type WantsServiceResolver interface {
	SetServiceResolver(ServiceResolver)
}

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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