portainer/build/download_kubectl_binary.ps1

8 lines
222 B
PowerShell

param (
[string]$kubectl_version
)
$ErrorActionPreference = "Stop";
Invoke-WebRequest -O "dist/kubectl.exe" "https://storage.googleapis.com/kubernetes-release/release/$($kubectl_version)/bin/windows/amd64/kubectl.exe"