Update names of helm test pods for openstack services
This updates the names of the helm test pods to give all services in OSH-infra/OSH a uniform '{{ .Release.Name }}-test' name, which allows for easier gathering of test results across all deployed services Change-Id: I24df7a18d32b99d1ffaad19647ef724316e2fe20
This commit is contained in:
parent
eed43b8524
commit
5bc7ded909
@ -23,7 +23,7 @@ limitations under the License.
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: "{{.Release.Name}}-rally-test"
|
||||
name: "{{.Release.Name}}-test"
|
||||
annotations:
|
||||
"helm.sh/hook": test-success
|
||||
spec:
|
||||
|
@ -23,7 +23,7 @@ limitations under the License.
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: "{{.Release.Name}}-rally-test"
|
||||
name: "{{.Release.Name}}-test"
|
||||
annotations:
|
||||
"helm.sh/hook": test-success
|
||||
spec:
|
||||
|
@ -23,7 +23,7 @@ limitations under the License.
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: "{{.Release.Name}}-rally-test"
|
||||
name: "{{.Release.Name}}-test"
|
||||
annotations:
|
||||
"helm.sh/hook": test-success
|
||||
spec:
|
||||
|
@ -23,7 +23,7 @@ limitations under the License.
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: "{{.Release.Name}}-rally-test"
|
||||
name: "{{.Release.Name}}-test"
|
||||
annotations:
|
||||
"helm.sh/hook": test-success
|
||||
spec:
|
||||
|
@ -23,7 +23,7 @@ limitations under the License.
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: "{{.Release.Name}}-rally-test"
|
||||
name: "{{.Release.Name}}-test"
|
||||
annotations:
|
||||
"helm.sh/hook": test-success
|
||||
spec:
|
||||
|
@ -23,7 +23,7 @@ limitations under the License.
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: "{{.Release.Name}}-rally-test"
|
||||
name: "{{.Release.Name}}-test"
|
||||
annotations:
|
||||
"helm.sh/hook": test-success
|
||||
spec:
|
||||
|
@ -23,7 +23,7 @@ limitations under the License.
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: "{{.Release.Name}}-rally-test"
|
||||
name: "{{.Release.Name}}-test"
|
||||
annotations:
|
||||
"helm.sh/hook": test-success
|
||||
spec:
|
||||
|
@ -84,17 +84,14 @@ function helm_test_deployment {
|
||||
TIMEOUT=$2
|
||||
fi
|
||||
|
||||
NAME="${DEPLOYMENT}-rally-test"
|
||||
if [ "$#" -gt 2 ]; then
|
||||
NAME="${DEPLOYMENT}-test"
|
||||
fi
|
||||
NAME="${DEPLOYMENT}-test"
|
||||
|
||||
# Get the namespace of the chart via the Helm release
|
||||
NAMESPACE=$(helm status ${DEPLOYMENT} | awk '/^NAMESPACE/ { print $NF }')
|
||||
|
||||
helm test --timeout ${TIMEOUT} ${DEPLOYMENT}
|
||||
mkdir -p ${LOGS_DIR}/rally
|
||||
kubectl logs -n ${NAMESPACE} ${NAME} > ${LOGS_DIR}/rally/${DEPLOYMENT}
|
||||
mkdir -p ${LOGS_DIR}/helm-tests
|
||||
kubectl logs -n ${NAMESPACE} ${NAME} > ${LOGS_DIR}/helm-tests/${DEPLOYMENT}
|
||||
kubectl delete -n ${NAMESPACE} pod ${NAME}
|
||||
}
|
||||
|
||||
|
@ -217,7 +217,7 @@ if [ "x$INTEGRATION" == "xmulti" ]; then
|
||||
helm_test_deployment cinder ${SERVICE_TEST_TIMEOUT}
|
||||
helm_test_deployment neutron ${SERVICE_TEST_TIMEOUT}
|
||||
helm_test_deployment nova ${SERVICE_TEST_TIMEOUT}
|
||||
helm_test_deployment barbican ${SERVICE_TEST_TIMEOUT} norally
|
||||
helm_test_deployment barbican ${SERVICE_TEST_TIMEOUT}
|
||||
fi
|
||||
|
||||
if [ "x$RALLY_CHART_ENABLED" == "xtrue" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user