@@ -59,20 +59,25 @@ rlJournalStart
5959
6060 # 3 - download configuration file template
6161 # WARNING: if tang-operator is changed to OpenShift organization, change this
62- rlRun " curl -o tang_operator.yaml https://raw.githubusercontent.com/latchset/tang-operator/main/tools/scan_tools/tang_operator_template.yaml"
62+ if [ -z " ${KONFLUX} " ];
63+ then
64+ rlRun " curl -o tang_operator.yaml https://raw.githubusercontent.com/latchset/tang-operator/main/tools/scan_tools/tang_operator_template.yaml"
65+ else
66+ rlRun " curl -o tang_operator.yaml https://raw.githubusercontent.com/openshift/nbde-tang-server/main/tools/scan_tools/tang_operator_template.yaml"
67+ fi
6368
6469 # 4 - adapt configuration file template (token, machine)
6570 if [ " ${EXECUTION_MODE} " == " MINIKUBE" ];
6671 then
6772 API_HOST_PORT=$( minikube ip)
6873 DEFAULT_TOKEN=" TEST_TOKEN_UNREQUIRED_IN_MINIKUBE"
6974 else
70- API_HOST_PORT=$( " ${OC_CLIENT} " whoami --show-server | tr -d ' ' )
75+ API_HOST_PORT=$( " ${OC_CLIENT} " whoami --show-server | tr -d ' ' | sed -e s@https://@@g )
7176 DEFAULT_TOKEN=$( " ${OC_CLIENT} " get secret -n " ${OPERATOR_NAMESPACE} " " $( " ${OC_CLIENT} " get secret -n " ${OPERATOR_NAMESPACE} " \
72- | grep ^tang-operator | grep service-account | awk ' {print $1}' ) " -o json | jq -Mr ' .data.token' | base64 -d)
77+ | grep ^${OPERATOR_NAMESPACE} | grep service-account | awk ' {print $1}' ) " -o json | jq -Mr ' .data.token' | base64 -d)
7378 test -z " ${DEFAULT_TOKEN} " && \
7479 DEFAULT_TOKEN=$( " ${OC_CLIENT} " get secret -n " ${OPERATOR_NAMESPACE} " $( " ${OC_CLIENT} " get secret -n " ${OPERATOR_NAMESPACE} " \
75- | grep ^tang-operator | awk ' {print $1}' ) -o json | jq -M ' .data | .[]' | tr -d ' "' )
80+ | grep ^${OPERATOR_NAMESPACE} | awk ' {print $1}' ) -o json | jq -M ' .data | .[]' | tr -d ' "' )
7681 echo " API_HOST_PORT=${API_HOST_PORT} "
7782 echo " DEFAULT_TOKEN=${DEFAULT_TOKEN} "
7883 fi
@@ -88,9 +93,10 @@ rlJournalStart
8893 pushd rapidast || exit
8994 sed -i s@" kubectl --kubeconfig=./kubeconfig " @" ${OC_CLIENT} " @g helm/results.sh
9095 sed -i s@" secContext: '{}'" @" secContext: '{\" privileged\" : true}'" @ helm/chart/values.yaml
91- sed -i s@' tag: "latest"' @' tag: "2.6 .0"' @g helm/chart/values.yaml
96+ sed -i s@' tag: "latest"' @' tag: "2.8 .0"' @g helm/chart/values.yaml
9297
9398 # 6 - run rapidast on adapted configuration file (via helm)
99+ helm uninstall rapidast
94100 rlRun -c " helm install rapidast ./helm/chart/ --set-file rapidastConfig=${tmpdir} /tang_operator.yaml 2>/dev/null" 0 " Installing rapidast helm chart"
95101 pod_name=$( ocpopGetPodNameWithPartialName " rapidast" " default" 5 1)
96102 rlRun " ocpopCheckPodState Completed ${TO_DAST_POD_COMPLETED} default ${pod_name} " 0 " Checking POD ${pod_name} in Completed state [Timeout=${TO_DAST_POD_COMPLETED} secs.]"
0 commit comments