Skip to content

Commit

Permalink
Merge pull request #3 from nolar/no-kubectl
Browse files Browse the repository at this point in the history
Avoid overwriting the pre-existing kubectl
  • Loading branch information
nolar authored Nov 30, 2020
2 parents b91b4f0 + dc3cfc5 commit 596a920
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions action.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,6 @@ echo "::set-output name=k8s-version::${K8S}"
curl --silent --fail https://raw.githubusercontent.com/rancher/k3d/main/install.sh | bash
k3d cluster create ${K3D_NAME:-} --wait --image=rancher/k3s:"${K3S//+/-}" ${K3D_ARGS:-}

# Install kubectl (for this action only, not for the whole job).
curl --silent --fail -L -o kubectl \
https://storage.googleapis.com/kubernetes-release/release/"$K8S"/bin/linux/amd64/kubectl
chmod +x kubectl
sudo mv kubectl /usr/local/bin/

# Sometimes, the service account is not created immediately. Nice trick, but no:
# we need to wait until the cluster is fully ready before starting the tests.
if [[ -z "${SKIP_READINESS}" ]]; then
Expand Down

0 comments on commit 596a920

Please sign in to comment.