From 8b1802333163d0dce3e605a60fbbf6c632deaa2c Mon Sep 17 00:00:00 2001 From: ShiKhu Date: Thu, 13 May 2021 14:21:03 +0200 Subject: [PATCH] fix (helm): minio edp var for storage --- backend/services/storage/main.go | 6 +++--- scripts/helm/app/storage.yaml | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/backend/services/storage/main.go b/backend/services/storage/main.go index 83337d8a6..2d008d868 100644 --- a/backend/services/storage/main.go +++ b/backend/services/storage/main.go @@ -23,7 +23,7 @@ func main() { storageWeb := storage.NewS3(env.String("AWS_REGION_WEB"), env.String("S3_BUCKET_WEB")) - storageIos := storage.NewS3(env.String("AWS_REGION_IOS"), env.String("S3_BUCKET_IOS")) + //storageIos := storage.NewS3(env.String("AWS_REGION_IOS"), env.String("S3_BUCKET_IOS")) FS_DIR := env.String("FS_DIR") + "/" var uploadKey func(string, int, *storage.S3) @@ -54,8 +54,8 @@ func main() { switch msg.(type) { case *messages.SessionEnd: uploadKey(strconv.FormatUint(sessionID, 10), 5, storageWeb) - case *messages.IOSSessionEnd: - uploadKey(strconv.FormatUint(sessionID, 10), 5, storageIos) + //case *messages.IOSSessionEnd: + // uploadKey(strconv.FormatUint(sessionID, 10), 5, storageIos) } }, ) diff --git a/scripts/helm/app/storage.yaml b/scripts/helm/app/storage.yaml index 40225f1c3..18890847a 100644 --- a/scripts/helm/app/storage.yaml +++ b/scripts/helm/app/storage.yaml @@ -31,6 +31,7 @@ pvc: storageSize: 5Gi env: + AWS_ENDPOINT: http://minio.db.svc.cluster.local:9000 AWS_ACCESS_KEY_ID: "minios3AccessKeyS3cr3t" AWS_SECRET_ACCESS_KEY: "m1n10s3CretK3yPassw0rd" AWS_REGION_WEB: eu-central-1