podpreset

package
v1.19.1-rc.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// PluginName is a string with the name of the plugin
	PluginName = "PodPreset"
)

Variables

This section is empty.

Functions

func Register added in v1.7.0

func Register(plugins *admission.Plugins)

Register registers a plugin

Types

type Plugin added in v1.15.0

type Plugin struct {
	*admission.Handler
	// contains filtered or unexported fields
}

Plugin is an implementation of admission.Interface.

func NewPlugin

func NewPlugin() *Plugin

NewPlugin creates a new pod preset admission plugin.

func (*Plugin) Admit added in v1.15.0

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

func (p *Plugin) ValidateInitialization() error

ValidateInitialization validates the Plugin was initialized properly

Jump to

Keyboard shortcuts

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