Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConstraintAppliesTo ¶ added in v1.0.4
func ConstraintAppliesTo(constraint *kapi.SecurityContextConstraints, userInfo user.Info) bool
constraintAppliesTo inspects the constraint's users and groups against the userInfo to determine if it is usable by the userInfo.
func NewConstraint ¶
NewConstraint creates a new SCC constraint admission plugin.
func NewSCCExecRestrictions ¶ added in v1.0.7
NewSCCExecRestrictions creates a new admission controller that denies an exec operation on a privileged pod
Types ¶
type ByRestrictions ¶
type ByRestrictions []*kapi.SecurityContextConstraints
ByRestrictions is a helper to sort SCCs in order of most restrictive to least restrictive.
func (ByRestrictions) Len ¶
func (s ByRestrictions) Len() int
func (ByRestrictions) Less ¶
func (s ByRestrictions) Less(i, j int) bool
func (ByRestrictions) Swap ¶
func (s ByRestrictions) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.