Documentation ¶
Index ¶
- Constants
- func Register(plugins *admission.Plugins)
- type Plugin
- func (p *Plugin) Admit(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error
- func (p *Plugin) SetExternalKubeClientSet(client kubernetes.Interface)
- func (p *Plugin) SetExternalKubeInformerFactory(f informers.SharedInformerFactory)
- func (p *Plugin) ValidateInitialization() error
Constants ¶
View Source
const (
// PluginName is a string with the name of the plugin
PluginName = "PodPreset"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Plugin ¶ added in v1.15.0
Plugin is an implementation of admission.Interface.
func (*Plugin) Admit ¶ added in v1.15.0
func (p *Plugin) Admit(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error
Admit injects a pod with the specific fields for each pod preset it matches.
func (*Plugin) SetExternalKubeClientSet ¶ added in v1.15.0
func (p *Plugin) SetExternalKubeClientSet(client kubernetes.Interface)
SetExternalKubeClientSet registers the client into Plugin
func (*Plugin) SetExternalKubeInformerFactory ¶ added in v1.15.0
func (p *Plugin) SetExternalKubeInformerFactory(f informers.SharedInformerFactory)
SetExternalKubeInformerFactory registers an informer factory into Plugin
func (*Plugin) ValidateInitialization ¶ added in v1.15.0
ValidateInitialization validates the Plugin was initialized properly
Click to show internal directories.
Click to hide internal directories.