File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
charts/heimdall/templates/heimdall Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 98
98
{{- if and $values.config.fromSnapshot.enabled $values.config.fromSnapshot.snapshotUrl }}
99
99
- name : {{ $componentName }}-init-snapshot
100
100
# # TODO: update tag
101
- image : ghcr.io/graphops/docker-builds/init-stream-download@sha256:acbe5bff3b273b6e56b7aad20e8368ab9ddb091250b744e41ad66d6e7c2d0901
101
+ image : ghcr.io/graphops/docker-builds/init-stream-download:main
102
102
command :
103
103
- sh
104
104
- -c
@@ -108,10 +108,12 @@ spec:
108
108
# If enabled and snapshot URL has been provided, bootstrap snapshot
109
109
if [ ! -f "$HEIMDALLD_HOME/from_snapshot" ] || [ "$(cat $HEIMDALLD_HOME/from_snapshot)" != "${SNAPSHOT_URL}" ]; then
110
110
mkdir -p ${HEIMDALLD_HOME}/data
111
+ cd ${HEIMDALLD_HOME}
111
112
wget -c "${SNAPSHOT_URL}" -O snapshot.tar.lz4 || { echo "Download failed. Exiting."; exit 1; }
112
113
lz4 -d snapshot.tar.lz4 snapshot.tar || { echo "Decompression failed. Exiting."; exit 1; }
113
114
tar -xvf snapshot.tar -C ${HEIMDALLD_HOME}/data || { echo "Extraction failed. Exiting."; exit 1; }
114
115
echo "${SNAPSHOT_URL}" > ${HEIMDALLD_HOME}/from_snapshot
116
+ rm snapshot.tar snapshot.tar.lz4
115
117
fi
116
118
volumeMounts :
117
119
- name : storage
You can’t perform that action at this time.
0 commit comments