File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
.github/actions/deploy-charts Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 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
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
You can’t perform that action at this time.
0 commit comments