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 Mar 30, 2020
1 parent ca8f9e7 commit 1e34a94
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/testing-molecule-kind.sh
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 1e34a94

Please sign in to comment.