utils

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PodSecurityStandardProfile

type PodSecurityStandardProfile string

PodSecurityStandardProfile defines the different restriction levels that can be applied to the default operations of a PodSecurity admission plugin.

const (
	// PSSProfilePrivileged indicates an unrestricted policy, which allows for known privilege escalations.
	PSSProfilePrivileged PodSecurityStandardProfile = "privileged"
	// PSSProfileBaseline indicates a minimally restrictive policy, which bars from privilege escalations.
	PSSProfileBaseline PodSecurityStandardProfile = "baseline"
	// PSSProfileRestricted indicates a heavily restrictive policy.
	PSSProfileRestricted PodSecurityStandardProfile = "restricted"
)

func (PodSecurityStandardProfile) LessRestrictive

func (profile PodSecurityStandardProfile) LessRestrictive(argumentProfile PodSecurityStandardProfile) bool

LessRestrictive is a comparator that checks if the calling profile is less restrictive than the argument profile that is evaluated.

func (PodSecurityStandardProfile) Level

func (profile PodSecurityStandardProfile) Level() int

Level defines the order of restrictiveness of the different PodSecurityStandardProfile values. Higher number indicates more restrictions.

Jump to

Keyboard shortcuts

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