From ff91bed2bf6e896d5823df2f278fd46e4919cc16 Mon Sep 17 00:00:00 2001 From: Jim Ehrismann <40840436+jim-docker@users.noreply.github.com> Date: Fri, 28 Aug 2020 04:55:43 -0400 Subject: [PATCH] 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 --- .azure-pipelines.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index 68ced39d7d..009418b1c0 100644 --- a/.azure-pipelines.yml +++ b/.azure-pipelines.yml @@ -128,8 +128,9 @@ jobs: sudo apt-get install libgconf-2-4 conntrack -y curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 sudo install minikube-linux-amd64 /usr/local/bin/minikube - export CHANGE_MINIKUBE_NONE_USER=true 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 - script: xvfb-run --auto-servernum --server-args='-screen 0, 1600x900x24' make integration-linux displayName: Run integration tests