blob: 95e1880c0f7a42c5f9994d309cb17b9697a294d0 [file] [log] [blame]
Alexa0053b92022-10-14 16:38:28 -05001#!/bin/bash
2# Check vars
3if [ -z ${MY_CLIENTNAME+x} ]; then
4 echo "# Source ${MY_PROJFOLDER}/env.sh prior to running this script"
5 exit 1
6fi
7# Prepare qa namespace and resources
8echo "# Sourcing mosrc"
9. ${MY_PROJFOLDER}/envs/mosrc
10# check that kubeconfig present
11if [ -z ${KUBECONFIG} ]; then
12 exit 1
13fi
14
15# ns and storages
16echo "# Creating resources"
17kubectl apply -f ${MY_PROJFOLDER}/yamls/qa-res.yaml
18# keystone
19if [ -z $(kubectl -n qa-space get secret keystone-keystone-admin --no-headers | cut -d' ' -f1) ]; then
20 echo "# Copy keystone vars"
21 kubectl get secret keystone-keystone-admin -n openstack -o yaml | sed 's/namespace: openstack/namespace: qa-space/g' | kubectl apply -n qa-space -f -
22fi
23# start toolset
24echo "# Starting toolset pod"
25kubectl apply -f ${MY_PROJFOLDER}/yamls/qa-toolset.yaml
26echo "# Starting rally pod"
27kubectl apply -f ${MY_PROJFOLDER}/yamls/qa-rally.yaml
28