mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 11:00:25 +00:00
ci: move minikube variables to build.env
Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
parent
21946ae345
commit
f1da7d9bd1
@ -23,9 +23,6 @@ env:
|
|||||||
- TEST_COVERAGE=stdout
|
- TEST_COVERAGE=stdout
|
||||||
- GO_METALINTER_THREADS=1
|
- GO_METALINTER_THREADS=1
|
||||||
- GO_COVER_DIR=_output
|
- GO_COVER_DIR=_output
|
||||||
- VM_DRIVER=none
|
|
||||||
- MINIKUBE_VERSION=v1.6.0
|
|
||||||
- CHANGE_MINIKUBE_NONE_USER=true
|
|
||||||
- KUBECONFIG=$HOME/.kube/config
|
- KUBECONFIG=$HOME/.kube/config
|
||||||
# set CEPH_CSI_RUN_ALL_TESTS to non-empty to run all tests
|
# set CEPH_CSI_RUN_ALL_TESTS to non-empty to run all tests
|
||||||
- CEPH_CSI_RUN_ALL_TESTS=true
|
- CEPH_CSI_RUN_ALL_TESTS=true
|
||||||
|
@ -19,3 +19,8 @@ GOSEC_VERSION=2.0.0
|
|||||||
|
|
||||||
# helm chart generation, testing and publishing
|
# helm chart generation, testing and publishing
|
||||||
HELM_VERSION=v3.1.2
|
HELM_VERSION=v3.1.2
|
||||||
|
|
||||||
|
# minikube settings
|
||||||
|
MINIKUBE_VERSION=v1.6.0
|
||||||
|
VM_DRIVER=none
|
||||||
|
CHANGE_MINIKUBE_NONE_USER=true
|
||||||
|
@ -11,6 +11,16 @@ export KUBE_VERSION=$1
|
|||||||
kube_version() {
|
kube_version() {
|
||||||
echo "${KUBE_VERSION}" | sed 's/^v//' | cut -d'.' -f"${1}"
|
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 up
|
||||||
sudo scripts/minikube.sh deploy-rook
|
sudo scripts/minikube.sh deploy-rook
|
||||||
sudo scripts/minikube.sh create-block-pool
|
sudo scripts/minikube.sh create-block-pool
|
||||||
|
@ -16,6 +16,9 @@ kube_version() {
|
|||||||
source "$(dirname "${0}")/../build.env"
|
source "$(dirname "${0}")/../build.env"
|
||||||
cat << EOF | sudo tee -a /etc/environment
|
cat << EOF | sudo tee -a /etc/environment
|
||||||
HELM_VERSION=${HELM_VERSION}
|
HELM_VERSION=${HELM_VERSION}
|
||||||
|
MINIKUBE_VERSION=${MINIKUBE_VERSION}
|
||||||
|
VM_DRIVER=${VM_DRIVER}
|
||||||
|
CHANGE_MINIKUBE_NONE_USER=${CHANGE_MINIKUBE_NONE_USER}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# helm is installed from this shell, not a new one that reads /etc/environment
|
# helm is installed from this shell, not a new one that reads /etc/environment
|
||||||
|
Loading…
Reference in New Issue
Block a user