Skip to content

Commit c7e430e

Browse files
authored
Merge pull request #549 from andyzhangx/proxy-baserepo-error
fix: blobfuse-proxy helm install failed issue
2 parents 0fc1000 + 514ab0c commit c7e430e

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed
-16 Bytes
Binary file not shown.

charts/latest/blob-csi-driver/templates/blobfuse-proxy.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ spec:
2424
- virtual-kubelet
2525
initContainers:
2626
- name: prepare-binaries
27+
{{- if hasPrefix "/" .Values.image.blob.repository }}
28+
image: "{{ .Values.image.baseRepo }}{{ .Values.image.blob.repository }}:{{ .Values.image.blob.tag }}"
29+
{{- else }}
2730
image: "{{ .Values.image.blob.repository }}:{{ .Values.image.blob.tag }}"
31+
{{- end }}
2832
command: ['sh', '-c', "cp /blobfuse-proxy/*.deb /tmp/"]
2933
volumeMounts:
3034
- mountPath: /tmp
@@ -61,11 +65,15 @@ spec:
6165
sysctl -w fs.file-max=${MAX_FILE_NUM}
6266
fi
6367
64-
echo "waiting for blobfuse-proxy service to start"
68+
# "waiting for blobfuse-proxy service to start"
6569
sleep 3s
6670
# tail blobfuse proxy logs
6771
journalctl -u blobfuse-proxy -f
72+
{{- if hasPrefix "/" .Values.image.blob.repository }}
73+
image: "{{ .Values.image.baseRepo }}{{ .Values.image.blob.repository }}:{{ .Values.image.blob.tag }}"
74+
{{- else }}
6875
image: "{{ .Values.image.blob.repository }}:{{ .Values.image.blob.tag }}"
76+
{{- end }}
6977
imagePullPolicy: IfNotPresent
7078
name: sysctl-install-blobfuse-proxy
7179
env:

deploy/blobfuse-proxy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ spec:
6161
sysctl -w fs.file-max=${MAX_FILE_NUM}
6262
fi
6363
64-
echo "waiting for blobfuse-proxy service to start"
64+
# "waiting for blobfuse-proxy service to start"
6565
sleep 3s
6666
# tail blobfuse proxy logs
6767
journalctl -u blobfuse-proxy -f

0 commit comments

Comments
 (0)