admission

package
v1.8.0-alpha.2....-ef85265 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

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 Kubernetes specific admission plugins.

func NewPluginInitializer

func NewPluginInitializer(
	internalClient internalclientset.Interface,
	sharedInformers informers.SharedInformerFactory,
	cloudConfig []byte,
	restMapper meta.RESTMapper,
	quotaConfiguration quota.Configuration,
) *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

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

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

type WantsCloudConfig

type WantsCloudConfig interface {
	SetCloudConfig([]byte)
}

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

type WantsInternalKubeClientSet

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

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

type WantsInternalKubeInformerFactory

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

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

type WantsQuotaConfiguration

type WantsQuotaConfiguration interface {
	SetQuotaConfiguration(quota.Configuration)
	admission.InitializationValidator
}

WantsQuotaConfiguration defines a function which sets quota configuration for admission plugins that need it.

type WantsRESTMapper

type WantsRESTMapper interface {
	SetRESTMapper(meta.RESTMapper)
}

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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