privileged_pods

package
v0.2.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ValidatorName = "built-in:privileged-pods"
)

Variables

This section is empty.

Functions

func ConvertResourceToObj

func ConvertResourceToObj(resource unstructured.Unstructured, obj interface{}) error

ConvertResourceToObj function converts the unstructured object to the wanted object interface type

func NewPrivilegedPodsValidator

func NewPrivilegedPodsValidator(ctx context.Context) (common.Validator, error)

Types

type PrivilegedPodsValidator

type PrivilegedPodsValidator struct {
	// contains filtered or unexported fields
}

func (*PrivilegedPodsValidator) GetName

func (v *PrivilegedPodsValidator) GetName() string

func (*PrivilegedPodsValidator) SetPreApprovedPods

func (v *PrivilegedPodsValidator) SetPreApprovedPods(pods []unstructured.Unstructured)

func (*PrivilegedPodsValidator) Validate

*

the return violations array is non-nil if invalid resources were found
the return error is non-nil if another type of error was encountered

Jump to

Keyboard shortcuts

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