Skip to content

Commit 4acce22

Browse files
committed
Adjust doc for install OpenFunction in offline environment
Signed-off-by: wrongerror <wangyifei@kubesphere.io>
1 parent afb9ed8 commit 4acce22

File tree

1 file changed

+16
-4
lines changed
  • content/en/docs/reference

1 file changed

+16
-4
lines changed

content/en/docs/reference/faq.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ helm pull openfunction/openfunction
251251
Then 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
301301
openfunction/shipwright-mutate-image:v0.10.0
302302
openfunction/shipwright-bundle:v0.10.0
303303
openfunction/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
307309
openfunction/kube-rbac-proxy:v0.8.0
308310
openfunction/eventsource-handler:v4
309311
openfunction/trigger-handler:v4
310312
openfunction/dapr-proxy:v0.1.1
313+
openfunction/revision-controller:v1.0.0
311314
```
312315

313316
### Create custom values
@@ -433,7 +436,7 @@ contour:
433436
Run the following command in an offline environment to try to install OpenFunction:
434437
```shell
435438
kubectl 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
452455
helm 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

460472
A: 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

Comments
 (0)