OpenFunction / functions-framework-go

Go functions framework for OpenFunction
18 stars 20 forks source link

add support for running dapr app on knative runtime #25

Closed tpiperatgod closed 2 years ago

tpiperatgod commented 2 years ago
~# curl -v -d '{"message":"msg from knative runtime"}' -H "Content-Type: application/json" -X POST http://openfunction-function.default.192.168.0.2.sslip.io
Note: Unnecessary use of -X or --request, POST is already inferred.
* Rebuilt URL to: http://openfunction-function.default.192.168.0.2.sslip.io/
*   Trying 192.168.0.2...
* TCP_NODELAY set
* Connected to openfunction-function.default.192.168.0.2.sslip.io (192.168.0.2) port 80 (#0)
> POST / HTTP/1.1
> Host: openfunction-function.default.192.168.0.2.sslip.io
> User-Agent: curl/7.58.0
> Accept: */*
> Content-Type: application/json
> Content-Length: 20
>
* upload completely sent off: 20 out of 20 bytes
< HTTP/1.1 200 OK
< content-length: 0
< date: Fri, 14 Jan 2022 07:51:51 GMT
< x-openfunction-status: success
< x-envoy-upstream-service-time: 4252
< server: envoy
<
* Connection #0 to host openfunction-function.default.192.168.0.2.sslip.io left intact

logs from output target:

message from Kafka '{msg from knative runtime}'

Signed-off-by: laminar fangtian@kubesphere.io