File tree Expand file tree Collapse file tree 4 files changed +12
-3
lines changed Expand file tree Collapse file tree 4 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 26
26
},
27
27
"features" : {
28
28
"ghcr.io/devcontainers/features/docker-in-docker:2" : {},
29
- "ghcr.io/devcontainers-contrib/features/pre-commit:2" : {}
29
+ "ghcr.io/devcontainers-contrib/features/pre-commit:2" : {},
30
+ // To install feature locally, use the following syntax
31
+ // "./src/kubernetes-tools": {
32
+ // "install-krew": "latest",
33
+ // "install-k9s": "latest",
34
+ // "install-helm": "latest"
35
+ // }
30
36
},
31
37
"remoteUser" : " node" ,
32
38
"onCreateCommand" : " ./.devcontainer/onCreateCommand.sh" ,
Original file line number Diff line number Diff line change
1
+ ../src
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " Kubernetes Tools" ,
3
3
"id" : " kubernetes-tools" ,
4
- "version" : " 0.1 .0" ,
4
+ "version" : " 0.2 .0" ,
5
5
"description" : " A feature to install K8s tools." ,
6
6
"options" : {
7
7
"kubectl-version" : {
Original file line number Diff line number Diff line change @@ -39,7 +39,9 @@ if [ "$INSTALL_KREW" != "none" ]; then
39
39
KREW=" krew-linux_${ARCH} " &&
40
40
curl -fsSLO " $krew_dl_url " &&
41
41
tar zxvf " ${KREW} .tar.gz" &&
42
- mv ./" ${KREW} " /usr/local/bin/krew
42
+ mv ./" ${KREW} " /usr/local/bin/krew &&
43
+ chmod +x /usr/local/bin/krew &&
44
+ sudo su " $_REMOTE_USER " -c ' krew install krew && echo ' \' ' export PATH="${PATH}:${HOME}/.krew/bin"' \' ' >> ~/.bashrc'
43
45
)
44
46
fi
45
47
You can’t perform that action at this time.
0 commit comments