blob: 583f6a7b4967dd7e922698994ea7366e9def8ad6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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)
|