Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NewPolicyContext = policycontext.NewPolicyContext NewPolicyContextFromAdmissionRequest = policycontext.NewPolicyContextFromAdmissionRequest )
Functions ¶
func ForceMutate ¶ added in v1.2.0
func ForceMutate( ctx context.Interface, logger logr.Logger, policy kyvernov1.PolicyInterface, resource unstructured.Unstructured, ) (unstructured.Unstructured, error)
ForceMutate does not check any conditions, it simply mutates the given resource It is used to validate mutation logic, and for tests.
func NewEngine ¶ added in v1.10.0
func NewEngine( configuration config.Configuration, metricsConfiguration config.MetricsConfiguration, jp jmespath.Interface, client engineapi.Client, rclientFactory engineapi.RegistryClientFactory, ivCache imageverifycache.Client, contextLoader engineapi.ContextLoaderFactory, exceptionSelector engineapi.PolicyExceptionSelector, ) engineapi.Engine
Types ¶
type PolicyContext ¶ added in v1.0.0
type PolicyContext = policycontext.PolicyContext
PolicyContext contains the contexts for engine to process
Source Files ¶
Click to show internal directories.
Click to hide internal directories.