Merge pull request #11003 from rook/mergify/bp/release-1.10/pr-10991

build: Fix intermittent gen-rbac failure (backport #10991)
This commit is contained in:
mergify[bot] authored and GitHub committed 2022-09-15 16:58:44 +00:00
commit 8d5b9fe45f
1 file changed
+5 -2
+5 -2
View File
@@ -71,7 +71,8 @@ EOF
}
build_helm_resources() {
echo "Generating helm resources.yaml"
TMP_FILE=$(mktemp -q /tmp/resources.XXXXXX || exit 1)
echo "Generating helm resources.yaml to temp file: $TMP_FILE"
{
# add header
echo "{{- if .Values.crds.enabled }}"
@@ -83,7 +84,9 @@ build_helm_resources() {
# DO NOT REMOVE the empty line, it is necessary
echo ""
echo "{{- end }}"
} >>"$CEPH_HELM_CRDS_FILE_PATH"
} >>"$TMP_FILE"
echo "updating helm crds file $CEPH_HELM_CRDS_FILE_PATH from temp file"
mv "$TMP_FILE" "$CEPH_HELM_CRDS_FILE_PATH"
}
########