From d0ddd61ad96560fb825f42f7e842c795c5930e43 Mon Sep 17 00:00:00 2001 From: DQ Date: Tue, 30 Jun 2020 15:16:18 +0800 Subject: [PATCH] Fix Amazon S3 storage not work The Chartmuseum S3 client need set an Env variable Ref: https://github.com/helm/chartmuseum/issues/280 Signed-off-by: DQ --- make/photon/prepare/templates/chartserver/env.jinja | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/make/photon/prepare/templates/chartserver/env.jinja b/make/photon/prepare/templates/chartserver/env.jinja index 214846130..84bede172 100644 --- a/make/photon/prepare/templates/chartserver/env.jinja +++ b/make/photon/prepare/templates/chartserver/env.jinja @@ -25,10 +25,11 @@ DEPTH=1 # Backend storage driver: e.g. "local", "amazon", "google" etc. STORAGE={{storage_driver}} - +{% if storage_driver == "amazon" %} +AWS_SDK_LOAD_CONFIG=1 +{% endif %} # Storage driver settings {{all_storage_driver_configs}} - ## Settings with default values. Just put here for future changes DEBUG=false LOG_JSON=true