Update readme

This commit is contained in:
Donny Xia
2020-07-01 12:55:38 -07:00
parent 6d324d70c4
commit c2ccfd72ad
2 changed files with 13 additions and 1 deletions

3
hack/krmFunctionBenchmark/.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
node_modules
dist
example_tshirt/execfn/tshirt

View File

@@ -16,4 +16,13 @@ The script will build the exec version of function via container and then run 10
```bash
./cleanup.sh
```
Will remove the built exec version of the function. Add flag `--image` to remove the images that used to build exec function.
Will remove the built exec version of the function. Add flag `--image` to remove the images that used to build exec function.
## Functions in the benchmark
Two functions are used:
- `gcr.io/kustomize-functions/example-tshirt` ([link](https://github.com/kubernetes-sigs/kustomize/blob/master/functions/examples/injection-tshirt-sizes/image/main.go))
- `gcr.io/kpt-functions/label-namespace` ([link](https://github.com/GoogleContainerTools/kpt-functions-sdk/blob/master/ts/hello-world/src/label_namespace.ts))
`example-tshirt` is a Go function. `label-namespace` is a JS function. Both of them are used as transformers.