Skip to content

Commit

Permalink
Add secret for Long-haul (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
vinli-cn authored Jun 1, 2022
1 parent 0c30fd2 commit af9aa17
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/long_haul.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
run: |
./test/long-haul/start-long-haul.sh
env:
aks_cluster_name: "aks-lustre-longhaul"
aks_resource_group: "lustre-longhaul"
aks_pool_name: "longhaul"
aks_cluster_name: ${{ secrets.AKS_LONGHAUL_CLUSTER }}
aks_resource_group: ${{ secrets.AKS_LONGHAUL_RG }}
aks_pool_name: ${{ secrets.AKS_LONGHAUL_POOL }}
lustre_fs_name: ${{ secrets.LUSTRE_FS_NAME }}
lustre_fs_ip: ${{ secrets.LUSTRE_FS_IP }}
2 changes: 1 addition & 1 deletion deploy/example/azurelustre/storageclass.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ metadata:
provisioner: azurelustre.csi.azure.com
parameters:
mgs-ip-address: "172.18.16.8" # dev1, azurelustre cluster for daily work
#mgs-ip-address: "172.18.17.8" # dev2, azurelustre cluster for long-haul and PR gated check-in
#mgs-ip-address: "172.18.17.7" # dev2, azurelustre cluster for long-haul and PR gated check-in
fs-name: "lustrefs"
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ metadata:
name: azurelustre-longhaulsample-sc
provisioner: azurelustre.csi.azure.com
parameters:
mds-ip-address: "172.18.8.12" # 2nd azurelustre cluster for long-haul and PR gated check-in
fs-name: "lustrefs"
mds-ip-address: "{lustre_fs_ip}" # 2nd azurelustre cluster for long-haul and PR gated check-in
fs-name: "{lustre_fs_name}"

---
kind: PersistentVolumeClaim
Expand Down
4 changes: 3 additions & 1 deletion test/long-haul/start-long-haul.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ source ./utils.sh
export ClusterName="${aks_cluster_name}"
export ResourceGroup="${aks_resource_group}"
export PoolName="${aks_pool_name}"
export LustreFSName="${lustre_fs_name}"
export LustreFSIP="${lustre_fs_ip}"

sed -i "s/{longhaul_agentpool}/$PoolName/g" ./sample-workload/deployment_write_print_file.yaml
sed -i "s/{longhaul_agentpool}/$PoolName/g;s/{lustre_fs_name}/$LustreFSName/g;s/{lustre_fs_ip}/$LustreFSIP/g" ./sample-workload/deployment_write_print_file.yaml

print_logs_info "Connecting to AKS Cluster=$ClusterName, ResourceGroup=$ResourceGroup, AKS pool=$PoolName"
az configure --defaults group=$ResourceGroup
Expand Down

0 comments on commit af9aa17

Please sign in to comment.