package
4.1.0+incompatible
Repository: https://github.com/openshift/origin.git
Documentation: pkg.go.dev
# Functions
AssignSecurityContext creates a security context for each container in the pod and validates that the sc falls within the scc constraints.
ConstraintAppliesTo inspects the constraint's users and groups against the userInfo to determine if it is usable by the userInfo.
CreateProviderFromConstraint creates a SecurityContextConstraintProvider from a SecurityContextConstraint.
CreateProvidersFromConstraints creates providers from the constraints supplied, including looking up pre-allocated values if necessary using the pod's namespace.
NewSimpleProvider creates a new SecurityContextConstraintsProvider instance.
# Interfaces
SecurityContextConstraintsProvider provides the implementation to generate a new security context based on constraints or validate an existing security context against constraints.