From e4095fb40be18445ee42db55ee06438589ed327f Mon Sep 17 00:00:00 2001 From: 0xff-dev Date: Fri, 5 Jan 2024 09:58:51 +0800 Subject: [PATCH] fix: rating test --- config/samples/rating_test.sh | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/config/samples/rating_test.sh b/config/samples/rating_test.sh index f52e13b7..1b0a281b 100755 --- a/config/samples/rating_test.sh +++ b/config/samples/rating_test.sh @@ -238,12 +238,26 @@ function checkCm() { info "1. create kind cluster" make kind +nodename="kubebb-core-control-plane" +nodeip=$(kubectl get node kubebb-core-control-plane -owide | grep -v "INTERNAL-IP" | awk '{print $6}') +echo "ingress node ${nodename}, nodeip ${nodeip}" + info "2 install pre-requisites" info "2.1 install tekton operator" helm repo add kubebb https://kubebb.github.io/components helm repo update kubebb kubectl create ns tekton helm -ntekton install tekton kubebb/tekton-operator --version 0.64.0 --wait + +info "2.2 install cluster-component" +helm pull --untar kubebb/cluster-component + +sed -e "s//${nodename}/g" cluster-component/values.yaml >tmp.yaml +kubectl create ns u4a-system +helm -nu4a-system install cluster-component cluster-component -f tmp.yaml \ + --set ingress-nginx.nodeSelector.kubernetes\.io/hostname="${nodename}" --set cert-manager.enabled=false --wait + +info "2.3 install cert-manager" # install certmanager helm repo add --force-update jetstack https://charts.jetstack.io helm repo update jetstack @@ -252,10 +266,13 @@ helm install cert-manager jetstack/cert-manager --namespace cert-manager --creat --set prometheus.enabled=false \ --set installCRDs=true -info "2.2 install kubeagi arcadia operator" +info "2.4 install kubeagi arcadia operator" helm repo add kubeagi https://kubeagi.github.io/arcadia helm repo update kubeagi -helm install arcadia kubeagi/arcadia --namespace arcadia --create-namespace --wait --set installCRDs=true +helm pull --untar kubeagi/arcadia + +sed -e "s//${nodeip}/g" arcadia/values.yaml >tmp.yaml +helm install arcadia arcadia --namespace arcadia --create-namespace --set portal.kubebbEnabled=false --wait -f tmp.yaml info "3. deploy kubebb/core" docker tag kubebb/core:latest kubebb/core:example-e2e