Skip to content

Commit

Permalink
add kp
Browse files Browse the repository at this point in the history
  • Loading branch information
ccollicutt committed Jan 6, 2022
1 parent 0551c9d commit c5fbbf9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,15 @@ function install_binaries(){
popd || log error "pushd fail"
fi

if [[ ! -f "$BIN_DIR"/kp ]]; then
pushd "$TMP_DIR" || log error "pushd fail"
log debug "installing kp"
wget -q https://github.com/vmware-tanzu/kpack-cli/releases/download/v0.4.2/kp-linux-0.4.2
mv kp-linux-0.4.2 "$BIN_DIR"/kp
chmod 755 "$BIN_DIR"/kp
popd || log error "pushd fail"
fi

}

function install_packages(){
Expand Down
4 changes: 4 additions & 0 deletions tests/test_install.bats
Original file line number Diff line number Diff line change
Expand Up @@ -158,4 +158,8 @@ load '/opt/bats-assert/load.bash'

@test "kubetail.bash should exist in bin dir" {
assert [ -e "$HOME/.k8s-dotfiles/bin/kubetail.bash" ]
}

@test "kubetail should exist in bin dir and be executable" {
assert [ -x "$HOME/.k8s-dotfiles/bin/kp" ]
}

0 comments on commit c5fbbf9

Please sign in to comment.