-
Notifications
You must be signed in to change notification settings - Fork 3
/
initAsdf-vm.sh
executable file
·47 lines (36 loc) · 1.01 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
#!/bin/bash
#set -e
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
CURRENT_DIR=$(pwd)
cd $SCRIPT_DIR/
asdf plugin-add golang
asdf install golang 1.19
asdf local golang 1.19
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.4
asdf local kustomize 4.5.4
asdf plugin-add k9s
asdf install k9s 0.25.18
asdf local k9s 0.25.18
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 tilt
asdf install tilt 0.30.5
asdf local tilt 0.30.5
asdf plugin-add dive https://github.com/looztra/asdf-dive
asdf install dive 0.10.0
asdf local dive 0.10.0
echo "reload shell $SHELL"
${SHELL}
cd $CURRENT_DIR