engine

package
v1.8.0-rc6 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2022 License: Apache-2.0 Imports: 2 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 *response.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 IsResponseSuccessful

func IsResponseSuccessful(engineReponses []*response.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