Skip to content

Commit 410a708

Browse files
committed
Fix rustfs endpoint
Signed-off-by: Barry Wu <a0987818905@gmail.com>
1 parent e3d2923 commit 410a708

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

charts/flyte-devbox/templates/storage/rustfs-bucket-init-job.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{{- if and .Values.rustfs.enabled .Values.rustfs.bucketInit.enabled }}
22
{{- $accessKey := .Values.rustfsupstream.secret.rustfs.access_key }}
33
{{- $secretKey := .Values.rustfsupstream.secret.rustfs.secret_key }}
4+
{{- $endpoint := tpl .Values.rustfs.bucketInit.endpoint . }}
45
apiVersion: batch/v1
56
kind: Job
67
metadata:
@@ -29,7 +30,7 @@ spec:
2930
- /bin/sh
3031
- -ec
3132
- |
32-
until mc alias set local '{{ .Values.rustfs.bucketInit.endpoint }}' '{{ $accessKey }}' '{{ $secretKey }}'; do
33+
until mc alias set local '{{ $endpoint }}' '{{ $accessKey }}' '{{ $secretKey }}'; do
3334
echo "waiting for rustfs endpoint..."
3435
sleep 2
3536
done

charts/flyte-devbox/values.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ flyte-binary:
2727
s3:
2828
disableSSL: true
2929
v2Signing: true
30-
endpoint: http://rustfs-svc:9000
30+
endpoint: http://rustfs-svc.{{ .Release.Namespace }}:9000
3131
authType: accesskey
3232
accessKey: rustfs
3333
secretKey: rustfsstorage
@@ -52,7 +52,7 @@ flyte-binary:
5252
plugins:
5353
k8s:
5454
default-env-vars:
55-
- FLYTE_AWS_ENDPOINT: http://rustfs-svc:9000
55+
- FLYTE_AWS_ENDPOINT: http://rustfs-svc.{{ .Release.Namespace }}:9000
5656
- FLYTE_AWS_ACCESS_KEY_ID: rustfs
5757
- FLYTE_AWS_SECRET_ACCESS_KEY: rustfsstorage
5858
- _U_EP_OVERRIDE: 'flyte-binary-http.{{ .Release.Namespace }}:8090'
@@ -113,7 +113,7 @@ rustfs:
113113
enabled: true
114114
bucketInit:
115115
enabled: true
116-
endpoint: http://rustfs-svc:9000
116+
endpoint: http://rustfs-svc.{{ .Release.Namespace }}:9000
117117
image:
118118
repository: minio/mc
119119
tag: latest

docker/devbox-bundled/manifests/dev.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,7 @@ spec:
890890
- /bin/sh
891891
- -ec
892892
- |
893-
until mc alias set local 'http://rustfs-svc:9000' 'rustfs' 'rustfsstorage'; do
893+
until mc alias set local 'http://rustfs-svc.flyte:9000' 'rustfs' 'rustfsstorage'; do
894894
echo "waiting for rustfs endpoint..."
895895
sleep 2
896896
done

0 commit comments

Comments
 (0)