Skip to content

Commit

Permalink
Remove provision_installer CI function
Browse files Browse the repository at this point in the history
  • Loading branch information
electrocucaracha committed Sep 17, 2021
1 parent afb835c commit d2a8889
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
9 changes: 0 additions & 9 deletions ci/_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,6 @@ set -o pipefail
# shellcheck source=tests/_utils.sh
source ../tests/_utils.sh

# provision_installer() - Deploys the installer node
function provision_installer {
if [[ "${HOST_INSTALLER:-false}" == "true" ]]; then
KRD_DEBUG=true ./krd_command.sh -a install_k8s
else
$VAGRANT_CMD_UP installer
fi
}

# run_installer_cmd() - Runs a specific command on the installer node
function run_installer_cmd {
if [[ "${HOST_INSTALLER:-false}" == "true" ]]; then
Expand Down
6 changes: 5 additions & 1 deletion ci/provision_installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ set -o pipefail
source _common.sh

if [ "$($VAGRANT_CMD status installer | grep "^installer" | awk '{ print $2}')" != "running" ]; then
provision_installer
if [[ "${HOST_INSTALLER:-false}" == "true" ]]; then
KRD_DEBUG=true ./krd_command.sh -a install_k8s
else
$VAGRANT_CMD_UP installer
fi
else
run_installer_cmd . ./krd_command.sh -a install_k8s
fi

0 comments on commit d2a8889

Please sign in to comment.