Skip to content

Commit 0a13907

Browse files
Single-Cluster Backup and Restore (#93)
Co-authored-by: wenting <wentingwu@microsoft.com>
1 parent 160f00e commit 0a13907

31 files changed

+3332
-7
lines changed

.github/actions/setup-test-environment/action.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,12 @@ runs:
273273
274274
echo "✓ Cluster resource check completed for ${{ inputs.architecture }}"
275275
276+
- name: Deploy CSI driver
277+
shell: bash
278+
run: |
279+
chmod +x ./operator/src/scripts/test-scripts/deploy-csi-driver.sh
280+
./operator/src/scripts/test-scripts/deploy-csi-driver.sh
281+
276282
- name: Install cert-manager
277283
shell: bash
278284
run: |
@@ -583,6 +589,7 @@ runs:
583589
resource:
584590
storage:
585591
pvcSize: 5Gi
592+
storageClass: csi-hostpath-sc
586593
exposeViaService:
587594
serviceType: ClusterIP
588595
EOF

.github/workflows/release_images.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,19 @@ jobs:
4545
image_tag: ${{ inputs.image_tag }}
4646
secrets: inherit
4747

48+
test-backup-and-restore:
49+
name: Test Backup and Restore
50+
if: ${{ inputs.run_tests == true }}
51+
uses: ./.github/workflows/test-backup-and-restore.yml
52+
with:
53+
image_tag: ${{ inputs.image_tag }}
54+
secrets: inherit
55+
4856
copy-and-push-manifest:
4957
name: Release Images
5058
runs-on: ubuntu-latest
51-
needs: [test-e2e, test-integration]
52-
if: always() && (needs.test-e2e.result == 'success' || needs.test-e2e.result == 'skipped') && (needs.test-integration.result == 'success' || needs.test-integration.result == 'skipped')
59+
needs: [test-e2e, test-integration, test-backup-and-restore]
60+
if: always() && (needs.test-e2e.result == 'success' || needs.test-e2e.result == 'skipped') && (needs.test-integration.result == 'success' || needs.test-integration.result == 'skipped') && (needs.test-backup-and-restore.result == 'success' || needs.test-backup-and-restore.result == 'skipped')
5361
strategy:
5462
matrix:
5563
image: [operator, sidecar]

0 commit comments

Comments
 (0)