mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
b4a4e3a4f3
* refactor: engine handlers Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * fix Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * refactor: don't process context/preconditions in invokeHandler Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * fix Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * fix Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * fix Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * fix Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * fix Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> --------- Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
14 lines
450 B
Go
14 lines
450 B
Go
package engine
|
|
|
|
import (
|
|
"github.com/kyverno/kyverno/pkg/engine/policycontext"
|
|
)
|
|
|
|
// PolicyContext contains the contexts for engine to process
|
|
type PolicyContext = policycontext.PolicyContext
|
|
|
|
var (
|
|
NewPolicyContextWithJsonContext = policycontext.NewPolicyContextWithJsonContext
|
|
NewPolicyContext = policycontext.NewPolicyContext
|
|
NewPolicyContextFromAdmissionRequest = policycontext.NewPolicyContextFromAdmissionRequest
|
|
)
|