We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84d42cb commit 3a54d72Copy full SHA for 3a54d72
1 file changed
stacks/kubectl/build.sh
@@ -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