utils

package
v1.8.3-rc.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: Apache-2.0 Imports: 14 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.String

func CanBackgroundProcess

func CanBackgroundProcess(logger logr.Logger, p kyvernov1.PolicyInterface) bool

func RemoveNonBackgroundPolicies

func RemoveNonBackgroundPolicies(logger logr.Logger, policies ...kyvernov1.PolicyInterface) []kyvernov1.PolicyInterface

func RemoveNonValidationPolicies added in v1.8.1

func RemoveNonValidationPolicies(logger logr.Logger, 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 *response.EngineResponse
	Error          error
}

type Scanner

type Scanner interface {
	ScanResource(unstructured.Unstructured, map[string]string, ...kyvernov1.PolicyInterface) map[kyvernov1.PolicyInterface]ScanResult
}

func NewScanner

func NewScanner(logger logr.Logger, client dclient.Interface, excludeGroupRole ...string) Scanner

Jump to

Keyboard shortcuts

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