Documentation ¶
Index ¶
Constants ¶
View Source
const (
PluginName = "PodSecurityPolicy"
)
Variables ¶
This section is empty.
Functions ¶
func NewPlugin ¶
func NewPlugin(kclient clientset.Interface, strategyFactory psp.StrategyFactory, pspMatcher PSPMatchFn, failOnNoPolicies bool) *podSecurityPolicyPlugin
NewPlugin creates a new PSP admission plugin.
Types ¶
type PSPMatchFn ¶
type PSPMatchFn func(store cache.Store, user user.Info, sa user.Info) ([]*extensions.PodSecurityPolicy, error)
PSPMatchFn allows plugging in how PSPs are matched against user information.
Click to show internal directories.
Click to hide internal directories.