diff --git a/src/k8sgpt/install.sh b/src/k8sgpt/install.sh index ca9bdb4..53e4328 100644 --- a/src/k8sgpt/install.sh +++ b/src/k8sgpt/install.sh @@ -8,15 +8,21 @@ set -e # `ensure_nanolayer` is a bash function that will find any existing nanolayer installations, # and if missing - will download a temporary copy that automatically get deleted at the end # of the script -ensure_nanolayer nanolayer_location "v0.5.0" +ensure_nanolayer nanolayer_location "v0.5.4" -$nanolayer_location install apt-get curl +# $nanolayer_location install apt-get curl if [ "${VERSION}" = "latest" ] ; then VERSION=$(curl -s https://api.github.com/repos/k8sgpt-ai/k8sgpt/releases/latest | grep "tag_name" | cut -d : -f 2,3 | tr -d \" | tr -d , | tr -d ' ') fi -curl -LO https://github.com/k8sgpt-ai/k8sgpt/releases/download/${VERSION}/k8sgpt_amd64.deb -dpkg -i k8sgpt_amd64.deb +$nanolayer_location \ + install \ + devcontainer-feature \ + "ghcr.io/devcontainers-contrib/features/gh-release:1.0.23" \ + --option repo='k8sgpt-ai/k8sgpt' --option binaryNames='k8sgpt' --option version="$VERSION" + +# curl -LO https://github.com/k8sgpt-ai/k8sgpt/releases/download/${VERSION}/k8sgpt_amd64.deb +# dpkg -i k8sgpt_amd64.deb echo 'Done!' \ No newline at end of file