Skip to content

Commit 5a33e67

Browse files
committed
Fix rustfs endpoint
Signed-off-by: Barry Wu <a0987818905@gmail.com>
1 parent 2ec03f1 commit 5a33e67

4 files changed

Lines changed: 10 additions & 9 deletions

File tree

charts/flyte-demo/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-demo/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/demo-bundled/manifests/complete.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -545,14 +545,14 @@ data:
545545
region: us-east-1
546546
disable_ssl: true
547547
v2_signing: true
548-
endpoint: http://rustfs-svc:9000
548+
endpoint: http://rustfs-svc.flyte:9000
549549
auth_type: accesskey
550550
container: flyte-data
551551
100-inline-config.yaml: |
552552
plugins:
553553
k8s:
554554
default-env-vars:
555-
- FLYTE_AWS_ENDPOINT: http://rustfs-svc:9000
555+
- FLYTE_AWS_ENDPOINT: http://rustfs-svc.flyte:9000
556556
- FLYTE_AWS_ACCESS_KEY_ID: rustfs
557557
- FLYTE_AWS_SECRET_ACCESS_KEY: rustfsstorage
558558
- _U_EP_OVERRIDE: flyte-binary-http.flyte:8090
@@ -937,7 +937,7 @@ spec:
937937
template:
938938
metadata:
939939
annotations:
940-
checksum/configuration: d69cb80df3d1df51b412e17e4404539cae41dee8c1403713e2ba407ad01641f5
940+
checksum/configuration: d974224a1479a5014a3ece1e82e3de3de93fe02a526615b3615689060698344b
941941
checksum/configuration-secret: 4bd6625ca25de370120c59fb11b5f6d5fb70b1314b13d18f3850d76d2e452869
942942
labels:
943943
app.kubernetes.io/component: flyte-binary
@@ -1200,7 +1200,7 @@ spec:
12001200
- /bin/sh
12011201
- -ec
12021202
- |
1203-
until mc alias set local 'http://rustfs-svc:9000' 'rustfs' 'rustfsstorage'; do
1203+
until mc alias set local 'http://rustfs-svc.flyte:9000' 'rustfs' 'rustfsstorage'; do
12041204
echo "waiting for rustfs endpoint..."
12051205
sleep 2
12061206
done

docker/demo-bundled/manifests/dev.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ spec:
814814
- /bin/sh
815815
- -ec
816816
- |
817-
until mc alias set local 'http://rustfs-svc:9000' 'rustfs' 'rustfsstorage'; do
817+
until mc alias set local 'http://rustfs-svc.flyte:9000' 'rustfs' 'rustfsstorage'; do
818818
echo "waiting for rustfs endpoint..."
819819
sleep 2
820820
done

0 commit comments

Comments
 (0)