noderestriction

package
v1.19.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2020 License: Apache-2.0 Imports: 25 Imported by: 46

Documentation

Index

Constants

View Source
const PluginName = "NodeRestriction"

PluginName is a string with the name of the plugin

Variables

This section is empty.

Functions

func Register

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 holds state for and implements the admission plugin.

func NewPlugin

func NewPlugin(nodeIdentifier nodeidentifier.NodeIdentifier) *Plugin

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

func (*Plugin) Admit added in v1.15.0

Admit checks the admission policy and triggers corresponding actions

func (*Plugin) InspectFeatureGates added in v1.17.0

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

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

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