podsecuritypolicy

package
v1.8.7-beta.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2017 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PluginName = "PodSecurityPolicy"
)

Variables

This section is empty.

Functions

func NewPlugin

func NewPlugin(strategyFactory psp.StrategyFactory, pspMatcher PSPMatchFn, failOnNoPolicies bool) *podSecurityPolicyPlugin

NewPlugin creates a new PSP admission plugin.

func ObserveAdmit added in v1.8.6

func ObserveAdmit(rejected bool, attr admission.Attributes)

func Register added in v1.7.0

func Register(plugins *admission.Plugins)

Register registers a plugin

Types

type PSPMatchFn

type PSPMatchFn func(lister extensionslisters.PodSecurityPolicyLister, user user.Info, sa user.Info, authz authorizer.Authorizer, namespace string) ([]*extensions.PodSecurityPolicy, error)

PSPMatchFn allows plugging in how PSPs are matched against user information.

Jump to

Keyboard shortcuts

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