Skip to content

Commit 83c1886

Browse files
Adham-Kiwanclaude
andcommitted
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 <noreply@anthropic.com> Signed-off-by: Adham Kiwan <adhamkiwan@outlook.com>
1 parent 8558eb7 commit 83c1886

4 files changed

Lines changed: 19 additions & 12 deletions

File tree

‎documentation/content/en/reference/cli/alpha/wasm/_index.md‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,13 @@ menu:
1717
<!--mdtogo:Long-->
1818
The `wasm` command group contains subcommands for managing WASM modules as OCI images.
1919
<!--mdtogo-->
20+
21+
{{% alert title="WASM functions are no longer supported" color="warning" %}}
22+
kpt used to be able to run KRM functions compiled to WASM, with the `--allow-alpha-wasm` flag of
23+
`kpt fn eval` and `kpt fn render`. That alpha feature has been removed: the runtimes it relied on are
24+
no longer maintained, and the feature saw little use. The flag is still accepted, but any function run
25+
with it fails with an error. Run your functions as container images or executables instead. See
26+
[#4881](https://github.com/kptdev/kpt/issues/4881) for background.
27+
{{% /alert %}}
28+
2029
{{< listdocs >}}

‎documentation/content/en/reference/cli/fn/eval/_index.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ fn-args:
6060

6161
```shell
6262
--allow-alpha-wasm:
63-
Allow alpha wasm functions to be run. If true, you can specify a wasm image
64-
with --image flag or a path to a wasm file (must have the .wasm file
65-
extension) with --exec flag. Defaults to false.
63+
Deprecated. Support for WASM functions has been removed from kpt. If set,
64+
running a function given with --image, or a .wasm file given with --exec,
65+
fails with an error. Defaults to false.
6666

6767
--as-current-user:
6868
Use the `uid` and `gid` of the kpt process for container function execution.

‎documentation/content/en/reference/cli/fn/render/_index.md‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,8 @@ PKG_PATH:
5252

5353
```shell
5454
--allow-alpha-wasm:
55-
Allow wasm to be used during pipeline execution. When enabled, function
56-
images that are wasm modules will be executed using the wasm runtime
57-
instead of a container runtime. Defaults to false.
55+
Deprecated. Support for WASM functions has been removed from kpt. If set,
56+
every function in the pipeline fails with an error. Defaults to false.
5857

5958
--allow-exec:
6059
Allow executable binaries to run as function. Note that executable binaries

‎internal/docs/generated/fndocs/docs.go‎

Lines changed: 5 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)