rawfile-localpv/.ci/e2e-test/setup.sh

24 lines
1.1 KiB
Bash
Raw Normal View History

#!/bin/bash
set -ex
source .ci/common
K8S_VERSION=1.19.12
MINIKUBE_VERSION=1.19.0
2021-06-29 10:32:26 +00:00
curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/v${K8S_VERSION}/bin/linux/amd64/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/
sudo apt update && sudo apt install -y conntrack
2021-06-29 10:32:26 +00:00
curl -Lo minikube https://storage.googleapis.com/minikube/releases/v${MINIKUBE_VERSION}/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
mkdir -p $HOME/.kube $HOME/.minikube
touch $KUBECONFIG
2021-06-29 10:32:26 +00:00
sudo minikube start --profile=minikube --vm-driver=none --kubernetes-version=v${K8S_VERSION}
minikube update-context --profile=minikube
eval "$(minikube docker-env --profile=minikube)" && export DOCKER_CLI='docker'
curl -fsSL https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash
helm upgrade --wait \
-n kube-system -i rawfile-csi \
--set serviceMonitor.enabled=false \
--set controller.image.repository=$CI_IMAGE_REPO --set controller.image.tag=$CI_TAG \
--set node.image.repository=$CI_IMAGE_REPO --set node.image.tag=$CI_TAG \
./deploy/charts/rawfile-csi/