Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chriscchien committed Sep 27, 2024
1 parent 6cd31bf commit eadc74c
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions e2e/utilities/longhorn-install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/usr/bin/env bash

set -x

source ../test_framework/scripts/longhorn-setup.sh
source ../pipelines/utilities/longhorn_ui.sh

# create and clean tmpdir
TMPDIR="/tmp/longhorn"
mkdir -p ${TMPDIR}
rm -rf "${TMPDIR:?}/"*

LONGHORN_NAMESPACE="longhorn-system"

# for install Longhorn by helm chart
LONGHORN_REPO_DIR="${TMPDIR}/longhorn"

main(){
create_longhorn_namespace
install_backupstores
if [[ "${LONGHORN_INSTALL_METHOD}" == "helm" ]]; then
get_longhorn_chart
install_longhorn_by_chart
elif [[ "${LONGHORN_INSTALL_METHOD}" == "manifest" ]]; then
generate_longhorn_yaml_manifest "${TF_VAR_tf_workspace}"
install_longhorn_by_manifest "${TF_VAR_tf_workspace}/longhorn.yaml"
fi
setup_longhorn_ui_nodeport

}

main

0 comments on commit eadc74c

Please sign in to comment.