aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorchrislusf <chris.lu@gmail.com>2025-12-05 19:32:02 -0800
committerChris Lu <chrislusf@users.noreply.github.com>2025-12-06 18:53:22 -0800
commit8888825ea9999fd07ce8a3d9bbce039c98694e4d (patch)
tree2d6ba46b482fc4f7aa0f516015e881ec81470d9a /.github/workflows
parent53bac024a2ef9acb1b953007951ab240fb5bca41 (diff)
downloadseaweedfs-csi-driver-8888825ea9999fd07ce8a3d9bbce039c98694e4d.tar.xz
seaweedfs-csi-driver-8888825ea9999fd07ce8a3d9bbce039c98694e4d.zip
fix: use correct namespace (default) and app labels in integration test
- CSI driver deploys to 'default' namespace, not 'seaweedfs-csi' - Fix app labels: seaweedfs-controller, seaweedfs-node, seaweedfs-mount - Update log collection to use correct labels
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/integration_test.yaml22
1 files changed, 10 insertions, 12 deletions
diff --git a/.github/workflows/integration_test.yaml b/.github/workflows/integration_test.yaml
index 782053d..bdd11a2 100644
--- a/.github/workflows/integration_test.yaml
+++ b/.github/workflows/integration_test.yaml
@@ -124,10 +124,8 @@ jobs:
- name: Deploy CSI Driver
run: |
- # Create namespace
- kubectl create namespace seaweedfs-csi || true
-
# Deploy CSI driver with test images and correct filer address
+ # The seaweedfs-csi.yaml deploys to 'default' namespace
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' | \
@@ -136,10 +134,10 @@ jobs:
# Wait for CSI driver pods to be ready
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
+ kubectl wait --for=condition=ready pod -l app=seaweedfs-controller --timeout=120s || true
+ kubectl wait --for=condition=ready pod -l app=seaweedfs-node --timeout=120s || true
+ kubectl wait --for=condition=ready pod -l app=seaweedfs-mount --timeout=120s || true
+ kubectl get pods -l 'app in (seaweedfs-controller,seaweedfs-node,seaweedfs-mount)'
- name: Create StorageClass and test PVC
run: |
@@ -173,7 +171,7 @@ jobs:
kubectl wait --for=jsonpath='{.status.phase}'=Bound pvc/test-pvc --timeout=60s || {
echo "PVC not bound, checking events..."
kubectl describe pvc test-pvc
- kubectl logs -n seaweedfs-csi -l app=csi-seaweedfs-controller --tail=50
+ kubectl logs -l app=seaweedfs-controller --tail=50
exit 1
}
@@ -203,7 +201,7 @@ jobs:
kubectl wait --for=condition=ready pod/test-pod --timeout=120s || {
echo "Pod not ready, checking status..."
kubectl describe pod test-pod
- kubectl logs -n seaweedfs-csi -l app=csi-seaweedfs-node --tail=100
+ kubectl logs -l app=seaweedfs-node --tail=100
exit 1
}
@@ -228,11 +226,11 @@ jobs:
if: failure()
run: |
echo "=== CSI Controller Logs ==="
- kubectl logs -n seaweedfs-csi -l app=csi-seaweedfs-controller --tail=200 || true
+ kubectl logs -l app=seaweedfs-controller --tail=200 || true
echo "=== CSI Node Logs ==="
- kubectl logs -n seaweedfs-csi -l app=csi-seaweedfs-node --tail=200 || true
+ kubectl logs -l app=seaweedfs-node --tail=200 || true
echo "=== Mount Service Logs ==="
- kubectl logs -n seaweedfs-csi -l app=seaweedfs-mount --tail=200 || true
+ kubectl logs -l app=seaweedfs-mount --tail=200 || true
echo "=== SeaweedFS Logs ==="
kubectl logs -n seaweedfs -l app=seaweedfs --tail=200 || true
echo "=== All Pods ==="