Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions documentation/content/en/reference/cli/alpha/wasm/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,13 @@ menu:
<!--mdtogo:Long-->
The `wasm` command group contains subcommands for managing WASM modules as OCI images.
<!--mdtogo-->

{{% 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
Comment on lines +24 to +25
[#4881](https://github.com/kptdev/kpt/issues/4881) for background.
{{% /alert %}}

{{< listdocs >}}
6 changes: 3 additions & 3 deletions documentation/content/en/reference/cli/fn/eval/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 2 additions & 3 deletions documentation/content/en/reference/cli/fn/render/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 5 additions & 6 deletions internal/docs/generated/fndocs/docs.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.