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

package noderestriction

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


Package Files



const PluginName = "NodeRestriction"

PluginName is a string with the name of the plugin

func Register Uses

func Register(plugins *admission.Plugins)

Register registers a plugin

type Plugin Uses

type Plugin struct {
    // contains filtered or unexported fields

Plugin holds state for and implements the admission plugin.

func NewPlugin Uses

func NewPlugin(nodeIdentifier nodeidentifier.NodeIdentifier) *Plugin

NewPlugin creates a new NodeRestriction admission plugin. This plugin identifies requests from nodes

func (*Plugin) Admit Uses

func (p *Plugin) Admit(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error

Admit checks the admission policy and triggers corresponding actions

func (*Plugin) InspectFeatureGates Uses

func (p *Plugin) InspectFeatureGates(featureGates featuregate.FeatureGate)

InspectFeatureGates allows setting bools without taking a dep on a global variable

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 noderestriction imports 25 packages (graph) and is imported by 63 packages. Updated 2021-01-14. Refresh now. Tools for package owners.