diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4282b91aa..41ea68ba5 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -278,15 +278,11 @@ jobs: - name: Load cache run: gzip --decompress --stdout docker.tar.gz | docker load - - name: fix permissions - run: | - sudo mkdir -p $HOME/.kube - sudo chmod -R 777 $HOME/.kube - - - name: Create Kubernetes ${{ matrix.k8s }} cluster + - name: Create cluster id: kind run: | - kind create cluster --image=kindest/node:${{ matrix.k8s }} + sudo chmod 777 "${HOME}/.kube" + kind create cluster --image kindest/node:${{ matrix.k8s }} --kubeconfig "${HOME}/.kube/kind-config-kind" - name: Test env: