mirror of
https://github.com/cert-manager/webhook-example.git
synced 2025-07-02 14:55:49 +02:00
10 lines
No EOL
374 B
Bash
Executable file
10 lines
No EOL
374 B
Bash
Executable file
#!/usr/bin/env bash
|
|
os=$(go env GOOS)
|
|
arch=$(go env GOARCH)
|
|
|
|
# download kubebuilder and extract it to tmp
|
|
curl -L https://go.kubebuilder.io/dl/2.3.1/${os}/${arch} | tar -xz -C /tmp/
|
|
|
|
# move to a long-term location and put it on your path
|
|
# (you'll need to set the KUBEBUILDER_ASSETS env var if you put it somewhere else)
|
|
mv /tmp/kubebuilder_2.3.1_${os}_${arch} ./kubebuilder |