From 0646ae69c4caf7db45f261de4a6e771e4ef42846 Mon Sep 17 00:00:00 2001 From: Roger Yao Date: Wed, 11 Dec 2024 21:36:29 +0800 Subject: [PATCH] AKS/EKS using Longhorn repo Manifests: Deploy MinIO/NFS for Backup Store Creation longhorn/longhorn#9955 Signed-off-by: Roger Yao --- test_framework/scripts/longhorn-setup.sh | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/test_framework/scripts/longhorn-setup.sh b/test_framework/scripts/longhorn-setup.sh index 66d79baa5..93f6b96f8 100755 --- a/test_framework/scripts/longhorn-setup.sh +++ b/test_framework/scripts/longhorn-setup.sh @@ -344,6 +344,18 @@ install_backupstores(){ setup_azuitize_backup_store } +install_backupstores_from_lh_repo(){ + MINIO_BACKUPSTORE_URL="https://raw.githubusercontent.com/longhorn/longhorn/master/deploy/backupstores/minio-backupstore.yaml" + NFS_BACKUPSTORE_URL="https://raw.githubusercontent.com/longhorn/longhorn/master/deploy/backupstores/nfs-backupstore.yaml" + CIFS_BACKUPSTORE_URL="https://raw.githubusercontent.com/longhorn/longhorn/master/deploy/backupstores/cifs-backupstore.yaml" + AZURITE_BACKUPSTORE_URL="https://raw.githubusercontent.com/longhorn/longhorn/master/deploy/backupstores/azurite-backupstore.yaml" + kubectl create -f ${MINIO_BACKUPSTORE_URL} \ + -f ${NFS_BACKUPSTORE_URL} \ + -f ${CIFS_BACKUPSTORE_URL} \ + -f ${AZURITE_BACKUPSTORE_URL} + setup_azuitize_backup_store +} + setup_azuitize_backup_store(){ RETRY=0 MAX_RETRY=60 @@ -557,7 +569,11 @@ main(){ install_cluster_autoscaler fi if [[ ${PYTEST_CUSTOM_OPTIONS} != *"--include-cluster-autoscaler-test"* ]]; then - install_backupstores + if [[ "${TF_VAR_k8s_distro_name}" == "eks" || "${TF_VAR_k8s_distro_name}" == "aks" ]]; then + install_backupstores_from_lh_repo + else + install_backupstores + fi fi install_csi_snapshotter_crds if [[ "${TF_VAR_enable_mtls}" == true ]]; then