mirror of
https://github.com/ivabus/pantry
synced 2024-11-27 02:35:08 +03:00
add kubectl (#443)
* add kubectl * try to install rsync on linux * missed the -y --------- Co-authored-by: Max Howell <mxcl@me.com>
This commit is contained in:
parent
ee57760e22
commit
9883285baa
1 changed files with 25 additions and 0 deletions
25
projects/kubernetes.io/kubectl/package.yml
Normal file
25
projects/kubernetes.io/kubectl/package.yml
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
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
|
||||||
|
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."
|
||||||
|
echo $(kubectl version --short 2>&1 || true) | grep "Client Version: v{{version}}"
|
Loading…
Reference in a new issue