admission

package
v1.1.4-jenkins-build-c... Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2016 License: Apache-2.0 Imports: 20 Imported by: 0

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

func NewConstraint(kclient clientset.Interface) *constraint

NewConstraint creates a new SCC constraint admission plugin.

func NewSCCExecRestrictions added in v1.0.7

func NewSCCExecRestrictions(client clientset.Interface) *sccExecRestrictions

NewSCCExecRestrictions creates a new admission controller that denies an exec operation on a privileged pod

Types

type ByPriority added in v1.0.8

type ByPriority []*kapi.SecurityContextConstraints

ByRestrictions is a helper to sort SCCs based on priority. If priorities are equal a string compare of the name is used.

func (ByPriority) Len added in v1.0.8

func (s ByPriority) Len() int

func (ByPriority) Less added in v1.0.8

func (s ByPriority) Less(i, j int) bool

func (ByPriority) Swap added in v1.0.8

func (s ByPriority) Swap(i, j int)

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)

Jump to

Keyboard shortcuts

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