tokers commented on code in PR #7634: URL: https://github.com/apache/apisix/pull/7634#discussion_r949916810
########## ci/init-plugin-test-service.sh: ########## @@ -41,3 +41,20 @@ docker exec -i rmqnamesrv /home/rocketmq/rocketmq-4.6.0/bin/mqadmin updateTopic # prepare vault kv engine docker exec -i vault sh -c "VAULT_TOKEN='root' VAULT_ADDR='http://0.0.0.0:8200' vault secrets enable -path=kv -version=1 kv" + +# prepare openfunction env +wget https://github.com/buildpacks/pack/releases/download/v0.27.0/pack-v0.27.0-linux.tgz +tar -zxvf pack-v0.27.0-linux.tgz + +# please fork and repalce this(./samples/functions/knative/hello-world-go) if you want to update function +git clone https://github.com/OpenFunction/samples.git +git clone https://github.com/jackkkkklee/my-samples.git Review Comment: @tzssangglass @spacewander I think we may avoid these dependencies from personal repos or this repo will be messy. ########## ci/init-plugin-test-service.sh: ########## @@ -41,3 +41,20 @@ docker exec -i rmqnamesrv /home/rocketmq/rocketmq-4.6.0/bin/mqadmin updateTopic # prepare vault kv engine docker exec -i vault sh -c "VAULT_TOKEN='root' VAULT_ADDR='http://0.0.0.0:8200' vault secrets enable -path=kv -version=1 kv" + +# prepare openfunction env +wget https://github.com/buildpacks/pack/releases/download/v0.27.0/pack-v0.27.0-linux.tgz +tar -zxvf pack-v0.27.0-linux.tgz + +# please fork and repalce this(./samples/functions/knative/hello-world-go) if you want to update function Review Comment: ```suggestion # please fork and replace this(./samples/functions/knative/hello-world-go) if you want to update function ``` ########## docs/en/latest/plugins/openfunction.md: ########## @@ -0,0 +1,181 @@ +--- +title: openfunction +keywords: + - APISIX + - Plugin + - OpenFunction + - openfunction +description: This document contains information about the CNCF OpenFunction Plugin. +--- + +<!-- +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +--> + +## Description + +The `openfunction` Plugin is used to integrate APISIX with [CNCF OpenFunction](https://openfunction.dev/) serverless platform. + +This Plugin can be configured on a Route and requests will be send to the configured OpenFunction API endpoint as the upstream. Review Comment: ```suggestion This Plugin can be configured on a Route and requests will be sent to the configured OpenFunction API endpoint as the upstream. ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
