Skip to content

Commit 55d257e

Browse files
committed
add design details
1 parent fb77246 commit 55d257e

File tree

1 file changed

+50
-11
lines changed
  • keps/sig-cli/4944-kustomize-wasm-plugin

1 file changed

+50
-11
lines changed

keps/sig-cli/4944-kustomize-wasm-plugin/README.md

Lines changed: 50 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
# KEP-4944: Kustomize Wasm Plugin
22

33
<!-- toc -->
4+
45
- [Release Signoff Checklist](#release-signoff-checklist)
56
- [Summary](#summary)
67
- [Motivation](#motivation)
7-
- [Limitation current plugins](#limitation-current-plugins)
8+
- [Limitation current plugins](#limitation-current-plugins)
89
- [Goals](#goals)
910
- [Non-Goals](#non-goals)
1011
- [Proposal](#proposal)
11-
- [Benefits of Wasm Plugin Support](#benefits-of-wasm-plugin-support)
12-
- [Platform Independence](#platform-independence)
13-
- [Simplified Distribution](#simplified-distribution)
14-
- [Familiar Interface](#familiar-interface)
15-
- [Enhanced Security](#enhanced-security)
12+
- [Benefits of Wasm Plugin Support](#benefits-of-wasm-plugin-support)
13+
- [Platform Independence](#platform-independence)
14+
- [Simplified Distribution](#simplified-distribution)
15+
- [Familiar Interface](#familiar-interface)
16+
- [Enhanced Security](#enhanced-security)
1617
- [User Stories (Optional)](#user-stories-optional)
1718
- [Story 1](#story-1)
1819
- [Story 2](#story-2)
@@ -21,10 +22,10 @@
2122
- [Risks and Mitigations](#risks-and-mitigations)
2223
- [Design Details](#design-details)
2324
- [Test Plan](#test-plan)
24-
- [Prerequisite testing updates](#prerequisite-testing-updates)
25-
- [Unit tests](#unit-tests)
26-
- [Integration tests](#integration-tests)
27-
- [e2e tests](#e2e-tests)
25+
- [Prerequisite testing updates](#prerequisite-testing-updates)
26+
- [Unit tests](#unit-tests)
27+
- [Integration tests](#integration-tests)
28+
- [e2e tests](#e2e-tests)
2829
- [Graduation Criteria](#graduation-criteria)
2930
- [Upgrade / Downgrade Strategy](#upgrade--downgrade-strategy)
3031
- [Version Skew Strategy](#version-skew-strategy)
@@ -39,6 +40,7 @@
3940
- [Drawbacks](#drawbacks)
4041
- [Alternatives](#alternatives)
4142
- [Infrastructure Needed (Optional)](#infrastructure-needed-optional)
43+
4244
<!-- /toc -->
4345

4446
## Release Signoff Checklist
@@ -296,7 +298,44 @@ required) or even code snippets. If there's any ambiguity about HOW your
296298
proposal will be implemented, this is the place to discuss them.
297299
-->
298300

299-
TODO(koba1t):
301+
Implement with [wazero](https://github.com/tetratelabs/wazero) to WASM runtime
302+
like the
303+
[kube-scheduler-wasm-extension](https://github.com/kubernetes-sigs/kube-scheduler-wasm-extension)
304+
project.
305+
306+
### Interface
307+
308+
Using the WASI to plugin interface.
309+
310+
##### with Wasm binary file
311+
312+
```yaml
313+
apiVersion: transformers.example.co/v1
314+
kind: App
315+
metadata:
316+
name: example-app
317+
annotations:
318+
config.kubernetes.io/function: |
319+
wasip1:
320+
file: ../bin/fnapp.wasm
321+
spec:
322+
port: 8080
323+
```
324+
325+
##### with OCI registry
326+
327+
```yaml
328+
apiVersion: transformers.example.co/v1
329+
kind: App
330+
metadata:
331+
name: example-app
332+
annotations:
333+
config.kubernetes.io/function: |
334+
wasip1:
335+
image: ghcr.io/koba1t/krm-fn-app:v0.0.3-wasm
336+
spec:
337+
port: 8080
338+
```
300339
301340
### Test Plan
302341

0 commit comments

Comments
 (0)