engine

package
v1.11.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlockRequest added in v1.8.0

func BlockRequest(er engineapi.EngineResponse, failurePolicy kyvernov1.FailurePolicyType) bool

BlockRequest returns true when: 1. a policy fails (i.e. creates a violation) and validationFailureAction is set to 'enforce' 2. a policy has a processing error and failurePolicy is set to 'Fail`

func GetNamespaceSelectorsFromNamespaceLister added in v1.9.0

func GetNamespaceSelectorsFromNamespaceLister(kind, namespaceOfResource string, nsLister corev1listers.NamespaceLister, logger logr.Logger) map[string]string

GetNamespaceSelectorsFromNamespaceLister - extract the namespacelabels when namespace lister is passed

func IsResponseSuccessful

func IsResponseSuccessful(engineReponses []engineapi.EngineResponse) bool

IsResponseSuccessful return true if all responses are successful

Types

This section is empty.

Jump to

Keyboard shortcuts

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