Skip to content

Commit

Permalink
Fix post install script
Browse files Browse the repository at this point in the history
  • Loading branch information
rrpolanco committed May 4, 2023
1 parent 30f01d1 commit df72d71
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions testgrid/specs/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -403,9 +403,10 @@
ekco:
version: latest
postInstallScript: |
# install kubent
sh -c "$(curl -sSL https://git.io/install-kubent)"
if ! KUBENT_OUTPUT="$(kubent)"; then
echo "Running Kube No Trouble (kubent)"
kubent_latest_version="$(curl -sL "https://api.github.com/repos/doitintl/kube-no-trouble/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')"
curl -L "https://github.com/doitintl/kube-no-trouble/releases/download/${kubent_latest_version}/kubent-${kubent_latest_version}-linux-amd64.tar.gz" | tar -xz
if ! KUBENT_OUTPUT="$(./kubent)"; then
echo "kubent failed to run!"
exit 1
elif [ -n "${KUBENT_OUTPUT}" ]; then
Expand Down

0 comments on commit df72d71

Please sign in to comment.