utils

package
v1.13.1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildKindSet

func BuildKindSet(logger logr.Logger, policies ...kyvernov1.PolicyInterface) sets.Set[string]

func CanBackgroundProcess

func CanBackgroundProcess(p kyvernov1.PolicyInterface) bool

func FetchClusterPolicies added in v1.10.5

func FetchClusterPolicies(cpolLister kyvernov1listers.ClusterPolicyLister) ([]kyvernov1.PolicyInterface, error)

func FetchPolicies added in v1.10.5

func FetchPolicies(polLister kyvernov1listers.PolicyLister, namespace string) ([]kyvernov1.PolicyInterface, error)

func FetchPolicyExceptions added in v1.12.0

func FetchPolicyExceptions(polexLister kyvernov2listers.PolicyExceptionLister, namespace string) ([]kyvernov2.PolicyException, error)

func GenerateEvents added in v1.9.0

func GenerateEvents(logger logr.Logger, eventGen event.Interface, config config.Configuration, results ...engineapi.EngineResponse)

func RemoveNonBackgroundPolicies

func RemoveNonBackgroundPolicies(policies ...kyvernov1.PolicyInterface) []kyvernov1.PolicyInterface

func RemoveNonValidationPolicies added in v1.8.1

func RemoveNonValidationPolicies(policies ...kyvernov1.PolicyInterface) []kyvernov1.PolicyInterface

func ReportsAreIdentical added in v1.8.3

func ReportsAreIdentical(before, after reportsv1.ReportInterface) bool

Types

type ScanResult

type ScanResult struct {
	EngineResponse *engineapi.EngineResponse
	Error          error
}

Jump to

Keyboard shortcuts

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