tokers commented on code in PR #7634:
URL: https://github.com/apache/apisix/pull/7634#discussion_r942235600


##########
ci/init-plugin-test-service.sh:
##########
@@ -41,3 +41,70 @@ 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
+prepare_kind_k8s() {
+    curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.11.1/kind-linux-amd64
+    chmod +x ./kind
+    curl -LO "https://dl.k8s.io/release/$(curl -L -s 
https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
+    sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
+    kind create cluster --name myk8s-01
+}
+
+install_openfuncntion() {
+    curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 
| bash
+    helm repo add openfunction https://openfunction.github.io/charts/
+    helm repo update
+    kubectl create namespace openfunction
+    helm install openfunction --set global.Keda.enabled=false --set 
global.Dapr.enabled=false openfunction/openfunction -n openfunction
+    kubectl wait pods --all  --for=condition=Ready --timeout=300s -n 
openfunction
+    kubectl delete -A ValidatingWebhookConfiguration ingress-nginx-admission
+    kubectl delete deployment -n keda --all
+    kubectl delete deployment -n dapr-system --all
+    kubectl delete pod -n keda --all
+    kubectl delete pod -n dapr-system --all
+}
+
+set_container_registry_secret() {
+    REGISTRY_SERVER=https://index.docker.io/v1/ 
REGISTRY_USER=apisixtestaccount123 REGISTRY_PASSWORD=apisixtestaccount

Review Comment:
   You should avoid exposing your secrets here. By the way, is this for 
building openfunction itself or the function?



-- 
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]

Reply via email to