package podpreset
import "k8s.io/kubernetes/plugin/pkg/admission/podpreset"
Index ¶
- Constants
- func Register(plugins *admission.Plugins)
- type Plugin
- func NewPlugin() *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 ¶
const ( // PluginName is a string with the name of the plugin PluginName = "PodPreset" )
Functions ¶
func Register ¶
Register registers a plugin
Types ¶
type Plugin ¶
Plugin is an implementation of admission.Interface.
func NewPlugin ¶
func NewPlugin() *Plugin
NewPlugin creates a new pod preset admission plugin.
func (*Plugin) Admit ¶
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 ¶
func (p *Plugin) SetExternalKubeClientSet(client kubernetes.Interface)
SetExternalKubeClientSet registers the client into Plugin
func (*Plugin) SetExternalKubeInformerFactory ¶
func (p *Plugin) SetExternalKubeInformerFactory(f informers.SharedInformerFactory)
SetExternalKubeInformerFactory registers an informer factory into Plugin
func (*Plugin) ValidateInitialization ¶
ValidateInitialization validates the Plugin was initialized properly
Source Files ¶
admission.go
- Version
- v1.16.13
- Published
- Jul 15, 2020
- Platform
- js/wasm
- Imports
- 20 packages
- Last checked
- 12 seconds ago –
Tools for package owners.