Skip to content

Commit de99c8a

Browse files
authored
Create user projects in batches of 5 (#188)
1 parent d79c23c commit de99c8a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bootstrap/ic-user-projects/create-projects-and-resources-job.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ spec:
2424
- |-
2525
# Get user count
2626
user_count=$(oc get namespaces | grep showroom | wc -l)
27+
USER_BATCH_SIZE=5
2728
2829
echo -n 'Waiting for minio-root-user secret'
2930
while [ -z "\$(oc get secret -n ic-shared-minio minio-root-user -oname 2>/dev/null)" ]; do
@@ -582,7 +583,9 @@ spec:
582583
- 'https://github.com/rh-aiservices-bu/parasol-insurance.git'
583584
EOF
584585
585-
sleep 20
586+
if (( i % USER_BATCH_SIZE == 0 )); then
587+
sleep 20
588+
fi
586589
587590
done
588591
restartPolicy: Never

0 commit comments

Comments
 (0)