allowed_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: 8 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func NewAllowedPodsValidator

func NewAllowedPodsValidator(ctx context.Context, configDir string) (common.Validator, error)

Types

type AllowedPodsValidator

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

func (*AllowedPodsValidator) GetName

func (v *AllowedPodsValidator) GetName() string

func (*AllowedPodsValidator) Validate

func (v *AllowedPodsValidator) Validate(resources []unstructured.Unstructured) ([]common.Violation, error)

type AllowlistItem

type AllowlistItem struct {
	Name      string `yaml:"name"`
	Namespace string `yaml:"namespace"`
	Kind      string `yaml:"kind"`
}

Jump to

Keyboard shortcuts

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