mirror of
https://github.com/lensapp/lens.git
synced 2024-11-10 10:36:25 +03:00
Change owner of minikube config files to $USER (#681)
For CI linux job minikube is started with kube and minikube config in $HOME, but they are owned by root. This causes non-root uses, like 'minikube status', to fail. Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
This commit is contained in:
parent
9e4155bab4
commit
ff91bed2bf
@ -128,8 +128,9 @@ jobs:
|
|||||||
sudo apt-get install libgconf-2-4 conntrack -y
|
sudo apt-get install libgconf-2-4 conntrack -y
|
||||||
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
|
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
|
||||||
sudo install minikube-linux-amd64 /usr/local/bin/minikube
|
sudo install minikube-linux-amd64 /usr/local/bin/minikube
|
||||||
export CHANGE_MINIKUBE_NONE_USER=true
|
|
||||||
sudo minikube start --driver=none
|
sudo minikube start --driver=none
|
||||||
|
# Although the kube and minikube config files are in placed $HOME they are owned by root
|
||||||
|
sudo chown -R $USER $HOME/.kube $HOME/.minikube
|
||||||
displayName: Install integration test dependencies
|
displayName: Install integration test dependencies
|
||||||
- script: xvfb-run --auto-servernum --server-args='-screen 0, 1600x900x24' make integration-linux
|
- script: xvfb-run --auto-servernum --server-args='-screen 0, 1600x900x24' make integration-linux
|
||||||
displayName: Run integration tests
|
displayName: Run integration tests
|
||||||
|
Loading…
Reference in New Issue
Block a user