-
Notifications
You must be signed in to change notification settings - Fork 3
/
initAsdf-vm.sh
executable file
·52 lines (39 loc) · 1.07 KB
/
initAsdf-vm.sh
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/bash
#set -e
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
CURRENT_DIR=$(pwd)
cd $SCRIPT_DIR/
KUBECTL_VERSION=$(curl -L -s https://dl.k8s.io/release/stable.txt | cut -c2-)
echo "$KUBECTL_VERSION=$KUBECTL_VERSION"
#KUBECTL_VERSION=1.23.6
#KUBECTL_VERSION=1.24.3
asdf plugin-add kubectl
asdf install kubectl $KUBECTL_VERSION
asdf local kubectl $KUBECTL_VERSION
asdf plugin-add helm
asdf install helm 3.8.2
asdf local helm 3.8.2
asdf plugin-add kustomize
asdf install kustomize 4.5.7
asdf local kustomize 4.5.7
asdf plugin-add k9s
asdf install k9s 0.26.3
asdf local k9s 0.26.3
asdf plugin-add octant https://github.com/looztra/asdf-octant
asdf install octant 0.25.1
asdf local octant 0.25.1
asdf plugin-add dive https://github.com/looztra/asdf-dive
asdf install dive 0.10.0
asdf local dive 0.10.0
asdf plugin-add go
asdf install go 1.19
asdf local go 1.19
asdf plugin add k6
asdf install k6 0.41.0
asdf local k6 0.41.0
asdf plugin add nodejs
asdf install nodejs 19.2.0
asdf local nodejs 19.2.0
echo "reload shell $SHELL"
${SHELL}
cd $CURRENT_DIR