@@ -251,7 +251,7 @@ helm pull openfunction/openfunction
251251Then use tools like scp to copy the helm package to your offline environment, e.g. :
252252
253253` ` ` shell
254- scp openfunction-v0.8.1 -v0.4 .0.tgz <username>@<your-machine-ip>:/home/<username>/
254+ scp openfunction-v1.0.0 -v0.5 .0.tgz <username>@<your-machine-ip>:/home/<username>/
255255` ` `
256256
257257# ## Synchronize images
@@ -301,13 +301,16 @@ openfunction/shipwright-io-build-git:v0.10.0
301301openfunction/shipwright-mutate-image:v0.10.0
302302openfunction/shipwright-bundle:v0.10.0
303303openfunction/shipwright-waiter:v0.10.0
304+ openfunction/buildah:v1.23.3
305+ openfunction/buildah:v1.28.0
304306
305307# openfunction
306- openfunction/openfunction:v0.8.1
308+ openfunction/openfunction:v1.0.0
307309openfunction/kube-rbac-proxy:v0.8.0
308310openfunction/eventsource-handler:v4
309311openfunction/trigger-handler:v4
310312openfunction/dapr-proxy:v0.1.1
313+ openfunction/revision-controller:v1.0.0
311314` ` `
312315
313316# ## Create custom values
@@ -433,7 +436,7 @@ contour:
433436Run the following command in an offline environment to try to install OpenFunction:
434437` ` ` shell
435438kubectl create namespace openfunction
436- helm install openfunction openfunction-v0.8.1 -v0.4 .0.tgz -n openfunction -f custom-values.yaml
439+ helm install openfunction openfunction-v1.0.0 -v0.5 .0.tgz -n openfunction -f custom-values.yaml
437440` ` `
438441
439442{{% alert title="Note" color="success" %}}
@@ -450,11 +453,20 @@ If the job exists and the job status is completed, run the following command to
450453
451454` ` ` shell
452455helm uninstall openfunction -n openfunction --no-hooks
453- helm install openfunction openfunction-v0.8.1 -v0.4 .0.tgz -n openfunction -f custom-values.yaml --no-hooks
456+ helm install openfunction openfunction-v1.0.0 -v0.5 .0.tgz -n openfunction -f custom-values.yaml --no-hooks
454457` ` `
455458
456459{{% /alert %}}
457460
461+ # ## Patch ClusterBuildStrategy
462+
463+ If you want to build wasm functions or use `buildah` to build functions in offline environment, run the following command to patch `ClusterBuildStrategy` :
464+
465+ ` ` ` shell
466+ kubectl patch clusterbuildstrategy buildah --type='json' -p='[{"op": "replace", "path": "/spec/buildSteps/0/image", "value":"openfunction/buildah:v1.28.0"}]'
467+ kubectl patch clusterbuildstrategy wasmedge --type='json' -p='[{"op": "replace", "path": "/spec/buildSteps/0/image", "value":"openfunction/buildah:v1.28.0"}]'
468+ ` ` `
469+
458470# # Q: How to build and run functions in an offline environment
459471
460472A : Let's take [Java functions](https://github.com/OpenFunction/samples/tree/main/functions/knative/java) as an example to illustrate how to build and run functions in an offline environment:
0 commit comments