ipedrazas / drone-helm

Helm (Kubernetes) plugin for drone.io
MIT License
121 stars 90 forks source link

Add support for any version of kubectl #102

Closed nickpetrovic closed 4 years ago

nickpetrovic commented 4 years ago

I noticed a previous issue for adding these into the docker image in the past, but that was reverted due to the size of the iamge.

I'm wondering if we can dynamically download kubectl packages and run them on the fly? Here's a shell script that can do something similar. Thinking the user could provide the version in the settings.

os=darwin  # or linux
arch=amd64
version=1.16.0

curl -LO https://storage.googleapis.com/kubernetes-release/release/v${version}/bin/${os}/${arch}/kubectl

chmod +x ./kubectl
./kubectl version