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.7
func ObserveAdmit(rejected bool, attr admission.Attributes)
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.
Click to show internal directories.
Click to hide internal directories.