policy

package
v1.12.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LegacyLoader          = legacyLoader
	KubectlValidateLoader = kubectlValidateLoader
)

Functions

func ExtractVariables

func ExtractVariables(policy kyvernov1.PolicyInterface) ([]string, error)

Types

type LoaderError added in v1.12.2

type LoaderError struct {
	Path  string
	Error error
}

type LoaderResults added in v1.12.2

type LoaderResults struct {
	Policies       []kyvernov1.PolicyInterface
	VAPs           []v1alpha1.ValidatingAdmissionPolicy
	VAPBindings    []v1alpha1.ValidatingAdmissionPolicyBinding
	NonFatalErrors []LoaderError
}

func Load

func Load(fs billy.Filesystem, resourcePath string, paths ...string) (*LoaderResults, error)

func LoadWithLoader

func LoadWithLoader(loader loader, fs billy.Filesystem, resourcePath string, paths ...string) (*LoaderResults, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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