From e40bc3e92c1ba983cc375e257ec8e3aafa3ec0b6 Mon Sep 17 00:00:00 2001 From: Kermit Alexander Date: Tue, 15 Jun 2021 16:48:02 +0000 Subject: [PATCH] Add WebAssembly alternative section. --- .../README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/keps/sig-api-machinery/NNNN-crd-validation-defaulting-conversion-expressions/README.md b/keps/sig-api-machinery/NNNN-crd-validation-defaulting-conversion-expressions/README.md index 947bf473092..99400f042b1 100644 --- a/keps/sig-api-machinery/NNNN-crd-validation-defaulting-conversion-expressions/README.md +++ b/keps/sig-api-machinery/NNNN-crd-validation-defaulting-conversion-expressions/README.md @@ -923,7 +923,11 @@ See Open Policy Agent (https://github.com/open-policy-agent/opa/tree/main/rego). ### WebAssembly -TODO +WebAssembly was considered as an alternative to CEL, up to having a [proof-of-concept implementation](https://github.com/jpbetz/omni-webhook/blob/main/validators/wasm.go). +However, all current WebAssembly runtimes require `cgo` to build, something that +might be difficult to integrate into api-server. Additionally, passing strings across +a WebAssembly boundary is currently dependent on the target language, so any supported +target language would need a small shim library to be supported. ### jq