2023-03-03 20:20:23 +03:00
|
|
|
distributable:
|
|
|
|
url: https://github.com/kubernetes/kubernetes/archive/refs/tags/v{{version}}.tar.gz
|
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
|
|
|
github: kubernetes/kubernetes/releases/tags
|
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/kubectl
|
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
go.dev: ^1.19
|
2023-03-18 02:16:02 +03:00
|
|
|
tea.xyz/gx/cc: c99
|
2023-03-03 20:20:23 +03:00
|
|
|
tea.xyz/gx/make: '*'
|
|
|
|
gnu.org/coreutils: ^9.1.0
|
|
|
|
gnu.org/bash: ^5.1
|
|
|
|
rsync.samba.org: '*'
|
|
|
|
script: |
|
|
|
|
make WHAT=cmd/kubectl
|
|
|
|
mkdir -p "{{ prefix }}"/bin
|
|
|
|
mv _output/bin/kubectl "{{ prefix }}"/bin
|
|
|
|
|
|
|
|
test: |
|
|
|
|
kubectl | grep "kubectl controls the Kubernetes cluster manager."
|
2023-08-24 08:44:54 +03:00
|
|
|
echo $(kubectl version || true) | grep "v{{version}}"
|