Merge pull request #11002 from rook/mergify/bp/release-1.9/pr-10991
build: Fix intermittent gen-rbac failure (backport #10991)
This commit is contained in:
1 file changed
+5
-2
@@ -85,7 +85,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 }}"
|
||||
@@ -97,7 +98,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"
|
||||
}
|
||||
|
||||
########
|
||||
|
||||
Reference in new issue
Block a user