Skip to content

Commit

Permalink
Update the FunctionMesh config example to use Docker images (#544)
Browse files Browse the repository at this point in the history
* Update the FunctionMesh config example to use Docker images

When using the existing example of compute_v1alpha1_functionmesh.yaml, it complains about the format of jarLocation and uploading jar package requires additional steps. Inspired by #542 the Docker image is used here for the Function which eliminates the steps to handle package uploading to make the onboarding easier.

* Fix the inconsistency in the comment

Co-authored-by: Rui Fu <freeznet@users.noreply.github.com>

* Fix another inconsistency in the comments

Co-authored-by: Rui Fu <freeznet@users.noreply.github.com>
  • Loading branch information
xiaogang-sn and freeznet authored Dec 9, 2022
1 parent e0e488b commit 6650f23
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions config/samples/compute_v1alpha1_functionmesh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ spec:
functions:
- name: ex1
className: org.apache.pulsar.functions.api.examples.ExclamationFunction
image: streamnative/pulsar-functions-java-sample:2.9.2.23
replicas: 1
maxReplicas: 1
logTopic: persistent://public/default/logging-function-log
Expand All @@ -19,8 +20,10 @@ spec:
pulsar:
pulsarConfig: "mesh-test-pulsar"
java:
jar: pulsar-functions-api-examples.jar
jarLocation: public/default/nlu-test-functionmesh-ex1
jar: /pulsar/examples/api-examples.jar
# use "" to read jar from the container's file system
jarLocation: ""
extraDependenciesDir: random-dir/
# following value must be provided if no auto-filling is enabled
forwardSourceMessageProperty: true
autoAck: true
Expand All @@ -34,6 +37,7 @@ spec:
clusterName: test-pulsar
- name: ex2
className: org.apache.pulsar.functions.api.examples.ExclamationFunction
image: streamnative/pulsar-functions-java-sample:2.9.2.23
replicas: 1
maxReplicas: 1
logTopic: persistent://public/default/logging-function-logs
Expand All @@ -47,8 +51,10 @@ spec:
pulsar:
pulsarConfig: "mesh-test-pulsar"
java:
jar: pulsar-functions-api-examples.jar
jarLocation: public/default/nlu-test-functionmesh-ex2
jar: /pulsar/examples/api-examples.jar
# use "" to read jar from the container's file system
jarLocation: ""
extraDependenciesDir: random-dir/
# following value must be provided if no auto-filling is enabled
forwardSourceMessageProperty: true
autoAck: true
Expand Down

0 comments on commit 6650f23

Please sign in to comment.