Skip to content

Commit 3a54d72

Browse files
committed
feat(stacks): add kubectl
1 parent 84d42cb commit 3a54d72

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

stacks/kubectl/build.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
# Load stack utils
4+
. /usr/bin/stack-utils
5+
6+
# Implement build function
7+
function build() {
8+
generate-stack-path
9+
BIN_DIR="${DATA_DIR}"/bin
10+
mkdir -p "${BIN_DIR}"
11+
curl -fsSL -o "${BIN_DIR}/kubectl" "https://dl.k8s.io/v${STACK_VERSION}/bin/linux/${OS_ARCH}/kubectl"
12+
chmod +x "${BIN_DIR}/kubectl"
13+
}
14+
15+
# call build stack
16+
build-stack "${1}"
17+

0 commit comments

Comments
 (0)