utils

package
v1.10.5 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: Apache-2.0 Imports: 22 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 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 kyvernov1alpha2.ReportInterface) bool

Types

type ScanResult

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

type Scanner

func NewScanner

func NewScanner(
	logger logr.Logger,
	engine engineapi.Engine,
	config config.Configuration,
	jp jmespath.Interface,
) Scanner

Jump to

Keyboard shortcuts

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