Skip to content

Commit 3ac0460

Browse files
committed
chore(addons): using shell instead of binary
1 parent 92843fa commit 3ac0460

3 files changed

Lines changed: 11 additions & 0 deletions

File tree

bin/checker

-15.7 MB
Binary file not shown.

bin/targz

-2.72 MB
Binary file not shown.

scripts/checker.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,16 @@ function installHelm() {
123123
fi
124124
}
125125

126+
function installYq() {
127+
if [ command -v yq >/dev/null 2>&1 ]; then
128+
echo -e "${INVERTED}yq has been installed.\n"
129+
else
130+
version=$(curl -Ls https://github.com/mikefarah/yq/releases|grep /mikefarah/yq/releases/tag/ | sed -E 's/.*\/mikefarah\/yq\/releases\/tag\/(v[0-9\.]{1,}(-rc.[0-9]{1,})?)".*/\1/g' | head -1)
131+
curl -fsSL https://github.com/mikefarah/yq/releases/download/$version/yq_linux_$(dpkg-architecture -q DEB_BUILD_ARCH) -o /usr/local/bin/yq
132+
chmod +x /usr/local/bin/yq
133+
fi
134+
}
135+
126136
function lintHelmChartsIfRequested() {
127137
if [ "$helmLint" = false ];
128138
then
@@ -166,6 +176,7 @@ function lintHelmChartsIfRequested() {
166176
fi
167177
}
168178

179+
installYq
169180
validateInputParams
170181

171182
checkAddons

0 commit comments

Comments
 (0)