Skip to content

Commit 49efcbb

Browse files
tests: Check that the CSIAddons daemonset is deployed
Signed-off-by: Niraj Yadav <niryadav@redhat.com>
1 parent 7783af9 commit 49efcbb

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/actions/deploy-charts/action.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ runs:
8383
shell: bash
8484
run: |
8585
DRIVER_NAME="${{ inputs.driverType }}.csi.ceph.com" yq eval '.drivers |= map(.enabled = (.name == strenv(DRIVER_NAME)))' -i ./deploy/charts/ceph-csi-drivers/values.yaml
86+
yq eval '.drivers |= map(.deployCsiAddons = (.name == "rbd.csi.ceph.com"))' -i ./deploy/charts/ceph-csi-drivers/values.yaml
8687
8788
- name: Install csi driver helm chart
8889
shell: bash
@@ -94,9 +95,15 @@ runs:
9495

9596
- name: Check csi pods are running
9697
shell: bash
98+
env:
99+
DRIVER_TYPE: ${{ inputs.driverType }}
97100
run: |
101+
podCount=2
102+
if [ "$DRIVER_TYPE" = "rbd" ]; then
103+
podCount=3
104+
fi
98105
for i in {1..180}; do
99-
if [ $(kubectl get pods -n csi-driver --field-selector=status.phase=Running --no-headers | wc -l) -eq 2 ]; then
106+
if [ $(kubectl get pods -n csi-driver --field-selector=status.phase=Running --no-headers | wc -l) -eq $podCount ]; then
100107
echo "All CSI pods are running"
101108
kubectl get pods,deployment,daemonset,replicaset -n csi-driver
102109
exit 0

0 commit comments

Comments
 (0)