kubernetes: k8s.io/kubernetes/plugin/pkg/admission/podpreset Index | Files

package podpreset

import "k8s.io/kubernetes/plugin/pkg/admission/podpreset"


Package Files



const (

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

func Register Uses

func Register(plugins *admission.Plugins)

Register registers a plugin

type Plugin Uses

type Plugin struct {
    // contains filtered or unexported fields

Plugin is an implementation of admission.Interface.

func NewPlugin Uses

func NewPlugin() *Plugin

NewPlugin creates a new pod preset admission plugin.

func (*Plugin) Admit Uses

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 Uses

func (p *Plugin) SetExternalKubeClientSet(client kubernetes.Interface)

SetExternalKubeClientSet registers the client into Plugin

func (*Plugin) SetExternalKubeInformerFactory Uses

func (p *Plugin) SetExternalKubeInformerFactory(f informers.SharedInformerFactory)

SetExternalKubeInformerFactory registers an informer factory into Plugin

func (*Plugin) ValidateInitialization Uses

func (p *Plugin) ValidateInitialization() error

ValidateInitialization validates the Plugin was initialized properly

Package podpreset imports 20 packages (graph) and is imported by 51 packages. Updated 2020-02-17. Refresh now. Tools for package owners.