Skip to content

Commit

Permalink
504: change samples function to make documenation steps work (#542)
Browse files Browse the repository at this point in the history
  • Loading branch information
imaffe authored Dec 6, 2022
1 parent 7cd3a58 commit e0e488b
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions config/samples/compute_v1alpha1_function.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ apiVersion: compute.functionmesh.io/v1alpha1
kind: Function
metadata:
name: java-function-sample
namespace: default
spec:
className: org.apache.pulsar.functions.api.examples.ExclamationFunction
forwardSourceMessageProperty: true
maxPendingAsyncRequests: 1000
replicas: 1
maxReplicas: 5
image: streamnative/pulsar-functions-java-sample:2.9.2.23
logTopic: persistent://public/default/logging-function-logs
input:
topics:
Expand All @@ -34,8 +34,6 @@ spec:
key: "password"
pulsar:
pulsarConfig: "test-pulsar"
authSecret: "test-auth"
tlsSecret: "test-tls"
volumeMounts:
- mountPath: /cache
name: cache-volume
Expand All @@ -61,8 +59,9 @@ spec:
image: busybox:1.28
command: ['sh', '-c', 'echo The app is running! && sleep 30000']
java:
jar: pulsar-functions-api-examples.jar
jarLocation: public/default/nlu-test-java-function
jar: /pulsar/examples/api-examples.jar
# use "" to read jar from local file system
jarLocation: ""
extraDependenciesDir: random-dir/
# use package name:
# jarLocation: function://public/default/nul-test-java-function@v1
Expand All @@ -77,14 +76,14 @@ metadata:
data:
webServiceURL: http://test-pulsar-broker.default.svc.cluster.local:8080
brokerServiceURL: pulsar://test-pulsar-broker.default.svc.cluster.local:6650
---
apiVersion: v1
kind: Secret
metadata:
name: test-auth
stringData:
clientAuthenticationPlugin: admin
clientAuthenticationParameters: t0p-Secret
#---
#apiVersion: v1
#kind: Secret
#metadata:
# name: test-auth
#stringData:
# clientAuthenticationPlugin: admin
# clientAuthenticationParameters: t0p-Secret
---
apiVersion: v1
kind: Secret
Expand Down

0 comments on commit e0e488b

Please sign in to comment.