Skip to content

Commit cd0364a

Browse files
authored
Targeted fsync in resource generating (#3809)
These syncs exist as a bandaid on a CI issue; They recently started causing the entire job to fail over the sync itself. Signed-off-by: Alex Kalenyuk <[email protected]>
1 parent 889dd4f commit cd0364a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hack/build/resource-generator.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function generateResourceManifest() {
7070
-pull-policy="{{ pull_policy }}" \
7171
-namespace="{{ cdi_namespace }}"
7272
) 1>>"${targetDir}/"$manifestNamej2
73-
sync
73+
sync "${targetDir}/"$manifestNamej2
7474

7575
# Remove empty lines at the end of files which are added by go templating
7676
find ${targetDir}/ -type f -exec sed -i {} -e '${/^$/d;}' \;
@@ -157,7 +157,7 @@ function populateResourceManifest() {
157157
-namespace="{{ cdi_namespace }}" \
158158
-generated-manifests-path=${generatedManifests}
159159
) 1>>"${tmplTargetDir}/"$outfile".j2"
160-
sync
160+
sync "${tmplTargetDir}/"$outfile".j2"
161161

162162
# Remove empty lines at the end of files which are added by go templating
163163
find ${targetDir}/ -type f -exec sed -i {} -e '${/^$/d;}' \;

0 commit comments

Comments
 (0)