From 381c7bf9dda4ac87369a10ccd4cfe92ed4823981 Mon Sep 17 00:00:00 2001 From: Adham Kiwan Date: Thu, 19 Nov 2026 01:35:33 +0200 Subject: [PATCH 1/2] Docs: state that WASM function support was removed Update the --allow-alpha-wasm flag reference for fn eval and fn render, and add a note to the alpha wasm page that says running WASM functions was removed and why. Regenerate the embedded CLI docs. Fixes #4883 Assisted-by: Claude Code (claude-opus-5-5) Co-Authored-By: Claude Opus 5.5 Signed-off-by: Adham Kiwan --- .../content/en/reference/cli/alpha/wasm/_index.md | 9 +++++++++ .../content/en/reference/cli/fn/eval/_index.md | 6 +++--- .../content/en/reference/cli/fn/render/_index.md | 5 ++--- internal/docs/generated/fndocs/docs.go | 11 +++++------ 4 files changed, 19 insertions(+), 12 deletions(-) diff --git a/documentation/content/en/reference/cli/alpha/wasm/_index.md b/documentation/content/en/reference/cli/alpha/wasm/_index.md index d4d5ac1433..e0705ba175 100644 --- a/documentation/content/en/reference/cli/alpha/wasm/_index.md +++ b/documentation/content/en/reference/cli/alpha/wasm/_index.md @@ -17,4 +17,13 @@ menu: The `wasm` command group contains subcommands for managing WASM modules as OCI images. + +{{% alert title="WASM functions are no longer supported" color="warning" %}} +kpt used to be able to run KRM functions compiled to WASM, with the `--allow-alpha-wasm` flag of +`kpt fn eval` and `kpt fn render`. That alpha feature has been removed: the runtimes it relied on are +no longer maintained, and the feature saw little use. The flag is still accepted, but any function run +with it fails with an error. Run your functions as container images or executables instead. See +[#4881](https://github.com/kptdev/kpt/issues/4881) for background. +{{% /alert %}} + {{< listdocs >}} diff --git a/documentation/content/en/reference/cli/fn/eval/_index.md b/documentation/content/en/reference/cli/fn/eval/_index.md index d88f88ba32..e287736ae2 100644 --- a/documentation/content/en/reference/cli/fn/eval/_index.md +++ b/documentation/content/en/reference/cli/fn/eval/_index.md @@ -60,9 +60,9 @@ fn-args: ```shell --allow-alpha-wasm: - Allow alpha wasm functions to be run. If true, you can specify a wasm image - with --image flag or a path to a wasm file (must have the .wasm file - extension) with --exec flag. Defaults to false. + Deprecated. Support for WASM functions has been removed from kpt. If set, + running a function given with --image, or a .wasm file given with --exec, + fails with an error. Defaults to false. --as-current-user: Use the `uid` and `gid` of the kpt process for container function execution. diff --git a/documentation/content/en/reference/cli/fn/render/_index.md b/documentation/content/en/reference/cli/fn/render/_index.md index 1100eff522..367e53ae59 100644 --- a/documentation/content/en/reference/cli/fn/render/_index.md +++ b/documentation/content/en/reference/cli/fn/render/_index.md @@ -52,9 +52,8 @@ PKG_PATH: ```shell --allow-alpha-wasm: - Allow wasm to be used during pipeline execution. When enabled, function - images that are wasm modules will be executed using the wasm runtime - instead of a container runtime. Defaults to false. + Deprecated. Support for WASM functions has been removed from kpt. If set, + every function in the pipeline fails with an error. Defaults to false. --allow-exec: Allow executable binaries to run as function. Note that executable binaries diff --git a/internal/docs/generated/fndocs/docs.go b/internal/docs/generated/fndocs/docs.go index f605d93a20..3265a98e56 100644 --- a/internal/docs/generated/fndocs/docs.go +++ b/internal/docs/generated/fndocs/docs.go @@ -59,9 +59,9 @@ Args: Flags: --allow-alpha-wasm: - Allow alpha wasm functions to be run. If true, you can specify a wasm image - with --image flag or a path to a wasm file (must have the .wasm file - extension) with --exec flag. Defaults to false. + Deprecated. Support for WASM functions has been removed from kpt. If set, + running a function given with --image, or a .wasm file given with --exec, + fails with an error. Defaults to false. --as-current-user: Use the ` + "`" + `uid` + "`" + ` and ` + "`" + `gid` + "`" + ` of the kpt process for container function execution. @@ -304,9 +304,8 @@ Args: Flags: --allow-alpha-wasm: - Allow wasm to be used during pipeline execution. When enabled, function - images that are wasm modules will be executed using the wasm runtime - instead of a container runtime. Defaults to false. + Deprecated. Support for WASM functions has been removed from kpt. If set, + every function in the pipeline fails with an error. Defaults to false. --allow-exec: Allow executable binaries to run as function. Note that executable binaries From b5a65c1c42add6749d6928b64e076959174645cb Mon Sep 17 00:00:00 2001 From: Adham Kiwan Date: Thu, 19 Nov 2026 15:43:47 +0200 Subject: [PATCH 2/2] Docs: use the Warning alert title and narrow the WASM failure claim The documentation style guide allows only Note, Warning and Critical as alert titles. The note also said that any function run with --allow-alpha-wasm fails, but fn eval only uses the WASM runtime for an --image function or a .wasm file given with --exec; ordinary executables still run. Assisted-by: Claude Code (claude-opus-5-5) Co-Authored-By: Claude Opus 5.5 Signed-off-by: Adham Kiwan --- .../content/en/reference/cli/alpha/wasm/_index.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/documentation/content/en/reference/cli/alpha/wasm/_index.md b/documentation/content/en/reference/cli/alpha/wasm/_index.md index e0705ba175..c9fe93daf7 100644 --- a/documentation/content/en/reference/cli/alpha/wasm/_index.md +++ b/documentation/content/en/reference/cli/alpha/wasm/_index.md @@ -18,12 +18,14 @@ menu: The `wasm` command group contains subcommands for managing WASM modules as OCI images. -{{% alert title="WASM functions are no longer supported" color="warning" %}} -kpt used to be able to run KRM functions compiled to WASM, with the `--allow-alpha-wasm` flag of -`kpt fn eval` and `kpt fn render`. That alpha feature has been removed: the runtimes it relied on are -no longer maintained, and the feature saw little use. The flag is still accepted, but any function run -with it fails with an error. Run your functions as container images or executables instead. See -[#4881](https://github.com/kptdev/kpt/issues/4881) for background. +{{% alert title="Warning" color="warning" %}} +WASM functions are no longer supported. kpt used to be able to run KRM functions compiled to WASM, with +the `--allow-alpha-wasm` flag of `kpt fn eval` and `kpt fn render`. That alpha feature has been removed: +the runtimes it relied on are no longer maintained, and the feature saw little use. The flag is still +accepted but deprecated, and every attempt to run a function on the WASM runtime fails with an error: +with `kpt fn render` that is every function in the pipeline, with `kpt fn eval` it is a function given +with `--image` or a `.wasm` file given with `--exec`. Run your functions as container images or +executables instead. See [#4881](https://github.com/kptdev/kpt/issues/4881) for background. {{% /alert %}} {{< listdocs >}}