processor

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PolicyProcessor

type PolicyProcessor struct {
	Store                     *store.Store
	Policies                  []kyvernov1.PolicyInterface
	Resource                  unstructured.Unstructured
	PolicyExceptions          []*kyvernov2beta1.PolicyException
	MutateLogPath             string
	MutateLogPathIsDir        bool
	Variables                 *variables.Variables
	UserInfo                  *kyvernov1beta1.RequestInfo
	PolicyReport              bool
	NamespaceSelectorMap      map[string]map[string]string
	Stdin                     bool
	Rc                        *ResultCounts
	PrintPatchResource        bool
	RuleToCloneSourceResource map[string]string
	Client                    dclient.Interface
	AuditWarn                 bool
	Subresources              []v1alpha1.Subresource
	Out                       io.Writer
}

func (*PolicyProcessor) ApplyPoliciesOnResource

func (p *PolicyProcessor) ApplyPoliciesOnResource() ([]engineapi.EngineResponse, error)

type ResultCounts

type ResultCounts struct {
	Pass  int
	Fail  int
	Warn  int
	Error int
	Skip  int
}

func (*ResultCounts) IncrementError added in v1.12.0

func (rc *ResultCounts) IncrementError(inc int)

type ValidatingAdmissionPolicyProcessor

type ValidatingAdmissionPolicyProcessor struct {
	Policies             []v1alpha1.ValidatingAdmissionPolicy
	Bindings             []v1alpha1.ValidatingAdmissionPolicyBinding
	Resource             *unstructured.Unstructured
	NamespaceSelectorMap map[string]map[string]string
	PolicyReport         bool
	Rc                   *ResultCounts
	Client               dclient.Interface
}

func (*ValidatingAdmissionPolicyProcessor) ApplyPolicyOnResource

func (p *ValidatingAdmissionPolicyProcessor) ApplyPolicyOnResource() ([]engineapi.EngineResponse, error)

Jump to

Keyboard shortcuts

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