Skip to content

Commit 0d04e0f

Browse files
dploegerDennis Ploeger
authored andcommitted
fix: Fixes k9s
Apparently, this has never worked correctly before.
1 parent ed6f173 commit 0d04e0f

3 files changed

Lines changed: 4 additions & 9 deletions

File tree

feature/k9s/feature.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ icon: "🐾"
22
title: "k9s"
33
description: "Installs [k9s](https://k9scli.io/)"
44
configuration:
5-
- "Environment K9S_VERSION (optional): Valid k9s version to install (defaults to latest)"
5+
- "Environment K9S_VERSION (required): Valid k9s version to install"

feature/k9s/goss/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
DEBUG_k9s=yes
1+
K9S_VERSION=0.32.5

feature/k9s/install.sh

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
. /feature-installer-utils.sh
22

3-
if [ -n "${K9S_VERSION}" ]
4-
then
5-
K9S_VERSION=$(checkAndCleanVersion "${K9S_VERSION}")
6-
else
7-
K9S_VERSION="latest"
8-
fi
3+
K9S_VERSION=$(checkAndCleanVersion "${K9S_VERSION}")
94

105
TEMPDIR=$(mktemp -d)
116
cd "${TEMPDIR}" || exit
127

13-
downloadFromGithub derailed k9s "${K9S_VERSION}" k9s_Linux_ .tar.gz k9s.tar.gz
8+
downloadFromGithub derailed k9s "v${K9S_VERSION}" k9s_Linux_ .tar.gz k9s.tar.gz
149

1510
execHandle "Unpacking k9s" tar xzf k9s.tar.gz
1611
execHandle "Installing k9s" mv k9s /home/cloudcontrol/bin

0 commit comments

Comments
 (0)