Skip to content

Commit

Permalink
Issue #36: Use sudo for kind and kubectl downloads.
Browse files Browse the repository at this point in the history
  • Loading branch information
geerlingguy committed Aug 28, 2020
1 parent 806cf2d commit 90dea26
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/testing-molecule-kind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ cd testing-molecule-kind
pip install ansible ansible-lint molecule

# Install Kind.
curl -Lo /usr/local/bin/kind https://github.com/kubernetes-sigs/kind/releases/download/"$KIND_VERSION"/kind-linux-amd64
chmod +x /usr/local/bin/kind
sudo curl -Lo /usr/local/bin/kind https://github.com/kubernetes-sigs/kind/releases/download/"$KIND_VERSION"/kind-linux-amd64
sudo chmod +x /usr/local/bin/kind

# Install kubectl.
curl -Lo /usr/local/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl
chmod +x /usr/local/bin/kubectl
sudo curl -Lo /usr/local/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl
sudo chmod +x /usr/local/bin/kubectl

# Test with Molecule.
molecule test

0 comments on commit 90dea26

Please sign in to comment.