diff --git a/20221022-ks-apisix/src/slides.md b/20221022-ks-apisix/src/slides.md index e03f10e..ed78b14 100644 --- a/20221022-ks-apisix/src/slides.md +++ b/20221022-ks-apisix/src/slides.md @@ -57,6 +57,8 @@ KubeSphere Ambassador, CNCF OpenFunction TOC Member
+ +
zhanghaili
webup
@@ -202,6 +204,8 @@ layout: section # 举几个函数的例子 🌰 +OpenFunction 现已支持 Go, Node.js, Python, Java, .Net 等[多种语言](https://openfunction.dev/docs/getting-started/quickstarts/) + --- layout: two-cols-header --- @@ -241,7 +245,7 @@ export const tryKnative = (req, res) => { ###### Function CR (Raw Manifest) -```yaml {7-} +```yaml {7-|8-15|16-17|18-} apiVersion: core.openfunction.io/v1beta1 kind: Function metadata: @@ -249,6 +253,16 @@ metadata: spec: version: v2.0.0 image: '/:' + build: + builder: openfunction/builder-node:v2-16.15 + env: + FUNC_NAME: tryKnative + srcRepo: + url: https://github.com/OpenFunction/samples.git + sourceSubPath: functions/async/mqtt-io-node + revision: main + # app port default to "8080" + port: 8080 serving: runtime: knative template: @@ -384,7 +398,7 @@ export const tryKnativeAsync = async (ctx, data) => { }; ``` -> 💡 [OpenFunction 函数形态](https://openfunction.dev/docs/concepts/function_signatures/) 可以同时支持同步和异步函数 +> 💡 [`openfunction` 函数形态](https://openfunction.dev/docs/concepts/function_signatures/) 可以同时支持同步和异步函数 ::right::