validation

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// EnforceLabel is a that governs the PSS that is enforced for a namespace
	EnforceLabel = "pod-security.kubernetes.io/enforce"
	// EnforceVersionLabel is a label  that governs the PSS version that is enforced for a namespace
	EnforceVersionLabel = "pod-security.kubernetes.io/enforce-version"
	// AuditLabel is a label  that governs the PSS that is used for auditing a namespace
	AuditLabel = "pod-security.kubernetes.io/audit"
	// AuditVersionLabel is a label  that governs the PSS version that is used for auditing a namespace
	AuditVersionLabel = "pod-security.kubernetes.io/audit-version"
	// WarnLabel is a label  that governs the PSS that is used for warning about PSA violations in a namespace
	WarnLabel = "pod-security.kubernetes.io/warn"
	// WarnVersionLabel is a label  that governs the PSS version that is used for warning about PSA violations in a namespace
	WarnVersionLabel = "pod-security.kubernetes.io/warn-version"
)

Variables

This section is empty.

Functions

func CheckCreatorID added in v0.2.5

func CheckCreatorID(request *admission.Request, oldObj, newObj metav1.Object) *metav1.Status

func IsCreatingPSAConfig added in v0.3.2

func IsCreatingPSAConfig(new map[string]string) bool

IsCreatingPSAConfig will indicate whether or not the labels being passed in are attempting to create PSA-related configuration.

func IsUpdatingPSAConfig added in v0.3.2

func IsUpdatingPSAConfig(old map[string]string, new map[string]string) bool

IsUpdatingPSAConfig will indicate whether or not the labels being passed in are attempting to update PSA-related configuration.

Types

This section is empty.

Directories

Path Synopsis
Package clusterroletemplatebinding is used for validating clusterroletemplatebing admission request.
Package clusterroletemplatebinding is used for validating clusterroletemplatebing admission request.
Package namespace holds the Admitters and Validator for webhook validation of requests modifying namespace objects.
Package namespace holds the Admitters and Validator for webhook validation of requests modifying namespace objects.
Package podsecurityadmissionconfigurationtemplate is used for validating podsecurityadmissionconfigurationtemplate admission requests.
Package podsecurityadmissionconfigurationtemplate is used for validating podsecurityadmissionconfigurationtemplate admission requests.
Package projectroletemplatebinding is used for validating projectroletemplatebinding admission request.
Package projectroletemplatebinding is used for validating projectroletemplatebinding admission request.

Jump to

Keyboard shortcuts

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