ci: move minikube variables to build.env

Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
Niels de Vos 2020-06-22 15:20:33 +02:00 committed by mergify[bot]
parent 21946ae345
commit f1da7d9bd1
4 changed files with 18 additions and 3 deletions

View File

@ -23,9 +23,6 @@ env:
- TEST_COVERAGE=stdout
- GO_METALINTER_THREADS=1
- GO_COVER_DIR=_output
- VM_DRIVER=none
- MINIKUBE_VERSION=v1.6.0
- CHANGE_MINIKUBE_NONE_USER=true
- KUBECONFIG=$HOME/.kube/config
# set CEPH_CSI_RUN_ALL_TESTS to non-empty to run all tests
- CEPH_CSI_RUN_ALL_TESTS=true

View File

@ -19,3 +19,8 @@ GOSEC_VERSION=2.0.0
# helm chart generation, testing and publishing
HELM_VERSION=v3.1.2
# minikube settings
MINIKUBE_VERSION=v1.6.0
VM_DRIVER=none
CHANGE_MINIKUBE_NONE_USER=true

View File

@ -11,6 +11,16 @@ export KUBE_VERSION=$1
kube_version() {
echo "${KUBE_VERSION}" | sed 's/^v//' | cut -d'.' -f"${1}"
}
# configure global environment variables
# shellcheck source=build.env
source "$(dirname "${0}")/../build.env"
cat << EOF | sudo tee -a /etc/environment
MINIKUBE_VERSION=${MINIKUBE_VERSION}
VM_DRIVER=${VM_DRIVER}
CHANGE_MINIKUBE_NONE_USER=${CHANGE_MINIKUBE_NONE_USER}
EOF
sudo scripts/minikube.sh up
sudo scripts/minikube.sh deploy-rook
sudo scripts/minikube.sh create-block-pool

View File

@ -16,6 +16,9 @@ kube_version() {
source "$(dirname "${0}")/../build.env"
cat << EOF | sudo tee -a /etc/environment
HELM_VERSION=${HELM_VERSION}
MINIKUBE_VERSION=${MINIKUBE_VERSION}
VM_DRIVER=${VM_DRIVER}
CHANGE_MINIKUBE_NONE_USER=${CHANGE_MINIKUBE_NONE_USER}
EOF
# helm is installed from this shell, not a new one that reads /etc/environment