Skip to content

Commit 04142b9

Browse files
Merge pull request #112 from stuggi/OSPRH-20621_follow_up
Fix ConfigMap masking not applied when called from gather_run
2 parents df553ff + a795277 commit 04142b9

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

collection-scripts/gather_services_cm

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ gather_services_cm () {
3434
for svc in "${OSP_SERVICES[@]}"; do
3535
get_cm "$NS" "$svc"
3636
done
37+
38+
# Ensure background configmap gathering tasks are done before masking
39+
wait_bg
40+
41+
if [[ "${DO_NOT_MASK}" -eq 0 ]]; then
42+
# All configmaps have been collected, apply masking on the configmaps directory
43+
/usr/bin/mask.py --dir "${NAMESPACE_PATH}/${NS}/configmaps"
44+
fi
3745
}
3846

3947

@@ -45,10 +53,4 @@ if [[ $CALLED -eq 1 ]]; then
4553
fi
4654

4755
gather_services_cm "$NS"
48-
wait_bg
49-
50-
if [[ "${DO_NOT_MASK}" -eq 0 ]]; then
51-
# All configmaps have been collected, apply masking on the configmaps directory
52-
/usr/bin/mask.py --dir "${NAMESPACE_PATH}/${NS}/configmaps"
53-
fi
5456
fi

0 commit comments

Comments
 (0)