diff options
author | Alec Scott <scott112@llnl.gov> | 2023-04-14 00:07:42 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-14 09:07:42 +0200 |
commit | 7786da9117fdc88805ead93ea3d88305783075c1 (patch) | |
tree | ad120c28b4098f32547ff6f66db9531e11134775 /var/spack/repos/builtin/packages/kubectl/package.py | |
parent | 87dca0130c489f407f4fed90ab0298222067e81c (diff) | |
download | spack-7786da9117fdc88805ead93ea3d88305783075c1.tar.gz spack-7786da9117fdc88805ead93ea3d88305783075c1.tar.bz2 spack-7786da9117fdc88805ead93ea3d88305783075c1.tar.xz spack-7786da9117fdc88805ead93ea3d88305783075c1.zip |
kubernetes: add v1.27.0 and split off new package kubectl (#36780)
Diffstat (limited to 'var/spack/repos/builtin/packages/kubectl/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/kubectl/package.py | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/kubectl/package.py b/var/spack/repos/builtin/packages/kubectl/package.py new file mode 100644 index 0000000000..583f6a7b49 --- /dev/null +++ b/var/spack/repos/builtin/packages/kubectl/package.py @@ -0,0 +1,30 @@ +# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack.package import * + + +class Kubectl(Package): + """ + Kubectl is a command-line interface for Kubernetes clusters. + """ + + homepage = "https://kubernetes.io" + url = "https://github.com/kubernetes/kubernetes/archive/refs/tags/v1.27.0.tar.gz" + + maintainers("alecbcs") + + version("1.27.0", sha256="536025dba2714ee5e940bb0a6b1df9ca97c244fa5b00236e012776a69121c323") + + depends_on("bash", type="build") + depends_on("go", type="build") + + phases = ["build", "install"] + + def build(self, spec, prefix): + make("-f", "build/root/Makefile", "WHAT=cmd/kubectl") + + def install(self, spec, prefix): + install_tree("_output/bin", prefix.bin) |