diff options
| author | chrislusf <chris.lu@gmail.com> | 2025-12-05 19:21:22 -0800 |
|---|---|---|
| committer | Chris Lu <chrislusf@users.noreply.github.com> | 2025-12-06 18:53:22 -0800 |
| commit | e19ed84870ff36cd3de628db80ae703e56b7b2df (patch) | |
| tree | 80042c8f36a1e410827ec75114a3cc1f480a7fd5 /.github/workflows/integration_test.yaml | |
| parent | ff62b6653f2ba858a9ef9623a90ee20f20c69d75 (diff) | |
| download | seaweedfs-csi-driver-e19ed84870ff36cd3de628db80ae703e56b7b2df.tar.xz seaweedfs-csi-driver-e19ed84870ff36cd3de628db80ae703e56b7b2df.zip | |
fix: correct filer address placeholder in integration test
- Fix sed pattern: replace SEAWEEDFS_FILER:8888 instead of localhost:8888
- Add readiness check for SeaweedFS filer before deploying CSI driver
- Wait for all CSI components (controller, node, mount service)
- Increase wait time for pods to start
Diffstat (limited to '.github/workflows/integration_test.yaml')
| -rw-r--r-- | .github/workflows/integration_test.yaml | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/.github/workflows/integration_test.yaml b/.github/workflows/integration_test.yaml index 8cc7cdd..34b797d 100644 --- a/.github/workflows/integration_test.yaml +++ b/.github/workflows/integration_test.yaml @@ -109,22 +109,35 @@ jobs: # Wait for SeaweedFS to be ready kubectl wait --for=condition=available --timeout=120s deployment/seaweedfs -n seaweedfs kubectl get pods -n seaweedfs + + # Wait for SeaweedFS filer to be responsive + echo "Waiting for SeaweedFS filer to be ready..." + for i in {1..30}; do + if kubectl exec -n seaweedfs deploy/seaweedfs -- wget -q -O- http://localhost:8888/; then + echo "SeaweedFS filer is ready" + break + fi + echo "Waiting for filer... ($i/30)" + sleep 2 + done - name: Deploy CSI Driver run: | # Create namespace kubectl create namespace seaweedfs-csi || true - # Deploy CSI driver with test images + # Deploy CSI driver with test images and correct filer address cat deploy/kubernetes/seaweedfs-csi.yaml | \ sed 's|chrislusf/seaweedfs-csi-driver:dev|seaweedfs-csi-driver:test|g' | \ sed 's|chrislusf/seaweedfs-mount:dev|seaweedfs-mount:test|g' | \ - sed 's|localhost:8888|seaweedfs.seaweedfs.svc.cluster.local:8888|g' | \ + sed 's|SEAWEEDFS_FILER:8888|seaweedfs.seaweedfs.svc.cluster.local:8888|g' | \ kubectl apply -f - # Wait for CSI driver pods to be ready - sleep 10 + sleep 15 + kubectl wait --for=condition=ready pod -l app=csi-seaweedfs-controller -n seaweedfs-csi --timeout=120s || true kubectl wait --for=condition=ready pod -l app=csi-seaweedfs-node -n seaweedfs-csi --timeout=120s || true + kubectl wait --for=condition=ready pod -l app=seaweedfs-mount -n seaweedfs-csi --timeout=120s || true kubectl get pods -n seaweedfs-csi - name: Create StorageClass and test PVC |
