7034968d96
This change migrates the check jobs in OSH to use the new helm v3 script when deploying kubernetes via minikube. This is one step in the move to helm v3. Future changes will migrate the other jobs. Change-Id: If741db5997a27ed06584b9af2d50485d8de34a2b
23 lines
592 B
Bash
Executable File
23 lines
592 B
Bash
Executable File
#!/bin/bash
|
|
set -x
|
|
|
|
APPLICATION=$1
|
|
RELEASE_GROUP=${2:-${APPLICATION}}
|
|
NAMESPACE=${3:-openstack}
|
|
: ${HELM_TESTS_TRIES:=2}
|
|
timeout=${OSH_TEST_TIMEOUT:-900}
|
|
|
|
run_tests() {
|
|
# Delete the test pod if it still exists
|
|
kubectl delete pods -l application=${APPLICATION},release_group=${RELEASE_GROUP},component=test --namespace=${NAMESPACE} --ignore-not-found
|
|
helm test ${APPLICATION} --timeout ${timeout}s --namespace=${NAMESPACE}
|
|
}
|
|
|
|
for i in $(seq 1 ${HELM_TESTS_TRIES}); do
|
|
echo "Run helm tests for ${APPLICATION}. Try #${i}"
|
|
run_tests
|
|
RC=$?
|
|
[ ${RC} -eq "0" ] && break
|
|
done
|
|
exit ${RC}
|