Documentation ¶
Index ¶
- func GetAdmissionPluginConfigurationFor(pluginCfg componentconfig.AdmissionPluginConfiguration) (io.Reader, error)
- func NewPluginInitializer(internalClient internalclientset.Interface, ...) admission.PluginInitializer
- func ReadAdmissionConfiguration(pluginNames []string, configFilePath string) (admission.ConfigProvider, error)
- type WantsAuthorizer
- type WantsInformerFactory
- type WantsInternalClientSet
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