mirror of
https://gitlab.com/nonguix/nonguix.git
synced 2024-11-25 01:48:08 +01:00
nongnu: Add kubectl.
* nongnu/packages/k8s.scm (kubectl): New variable. Signed-off-by: John Kehayias <john.kehayias@protonmail.com>
This commit is contained in:
parent
5e48b63976
commit
b06a2a40ef
1 changed files with 35 additions and 0 deletions
|
@ -75,3 +75,38 @@ offers subsequent commands to interact with your observed resources.")
|
||||||
"Katenary is a tool to help to transform docker-compose files to a working
|
"Katenary is a tool to help to transform docker-compose files to a working
|
||||||
Helm Chart for Kubernetes.")
|
Helm Chart for Kubernetes.")
|
||||||
(license license:expat)))
|
(license license:expat)))
|
||||||
|
|
||||||
|
(define-public kubectl
|
||||||
|
(package
|
||||||
|
(name "kubectl")
|
||||||
|
(version "1.28.1")
|
||||||
|
(source (origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (string-append
|
||||||
|
"https://dl.k8s.io/release/v" version "/bin/linux/amd64/kubectl"))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"1qbl4a2xv795apvbwahdb9kzcm2wys0am1c72as3iavgs3wxd9z7"))))
|
||||||
|
(build-system copy-build-system)
|
||||||
|
(arguments
|
||||||
|
(list
|
||||||
|
#:substitutable? #f
|
||||||
|
#:install-plan
|
||||||
|
#~'(("kubectl" "bin/"))
|
||||||
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(replace 'unpack
|
||||||
|
(lambda _
|
||||||
|
(copy-file #$source "./kubectl")
|
||||||
|
(chmod "kubectl" #o644)))
|
||||||
|
(add-before 'install 'chmod
|
||||||
|
(lambda _
|
||||||
|
(chmod "kubectl" #o555))))))
|
||||||
|
(home-page "https://github.com/kubernetes/kubectl")
|
||||||
|
(supported-systems '("x86_64-linux"))
|
||||||
|
(synopsis "Kubernetes command line tool")
|
||||||
|
(description
|
||||||
|
"kubectl allows you to run commands against Kubernetes clusters. You can
|
||||||
|
use kubectl to deploy applications, inspect and manage cluster resources, and
|
||||||
|
view logs.")
|
||||||
|
(license license:asl2.0)))
|
||||||
|
|
Loading…
Reference in a new issue