Files
wild-cloud/setup/cluster/longhorn/install.sh
Paul Payne 364c8c3da8 Add documentation management and reorganize scaffold docs
- Add wild-setup-docs command to copy documentation to cloud projects
- Move node setup guide from scaffold to main docs/guides/
- Add app workflow guide to main docs/guides/
- Update cluster installation scripts to use standard env initialization
2025-07-06 03:19:12 -07:00

30 lines
746 B
Bash
Executable File

#!/bin/bash
set -e
set -o pipefail
# Initialize Wild-Cloud environment
if [ -z "${WC_ROOT}" ]; then
print "WC_ROOT is not set."
exit 1
else
source "${WC_ROOT}/scripts/common.sh"
init_wild_env
fi
CLUSTER_SETUP_DIR="${WC_HOME}/setup/cluster"
LONGHORN_DIR="${CLUSTER_SETUP_DIR}/longhorn"
echo "Setting up Longhorn..."
# Templates should already be compiled by wild-cluster-services-generate
echo "Using pre-compiled Longhorn templates..."
if [ ! -d "${LONGHORN_DIR}/kustomize" ]; then
echo "Error: Compiled templates not found. Run 'wild-cluster-services-generate' first."
exit 1
fi
# Apply Longhorn with kustomize to apply our customizations
kubectl apply -k ${LONGHORN_DIR}/kustomize/
echo "Longhorn setup complete!"