admission

package
v1.6.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2017 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAdmissionPluginConfigurationFor

func GetAdmissionPluginConfigurationFor(pluginCfg componentconfig.AdmissionPluginConfiguration) (io.Reader, error)

GetAdmissionPluginConfigurationFor returns a reader that holds the admission plugin configuration.

func NewPluginInitializer

func NewPluginInitializer(internalClient internalclientset.Interface, sharedInformers informers.SharedInformerFactory, authz authorizer.Authorizer) admission.PluginInitializer

NewPluginInitializer constructs new instance of PluginInitializer

func ReadAdmissionConfiguration

func ReadAdmissionConfiguration(pluginNames []string, configFilePath string) (admission.ConfigProvider, error)

ReadAdmissionConfiguration reads the admission configuration at the specified path. It returns the loaded admission configuration if the input file aligns with the required syntax. If it does not align with the provided syntax, it returns a default configuration for the enumerated set of pluginNames whose config location references the specified configFilePath. It does this to preserve backward compatibility when admission control files were opaque. It returns an error if the file did not exist.

Types

type WantsAuthorizer

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

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

type WantsInformerFactory

type WantsInformerFactory interface {
	SetInformerFactory(informers.SharedInformerFactory)
	admission.Validator
}

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

type WantsInternalClientSet

type WantsInternalClientSet interface {
	SetInternalClientSet(internalclientset.Interface)
	admission.Validator
}

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

Jump to

Keyboard shortcuts

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