From b570bee10d9de8fb3a23b33195f4dc0b878d0603 Mon Sep 17 00:00:00 2001
From: Fabian Schindler <fabian.schindler.strauss@gmail.com>
Date: Wed, 9 Dec 2020 19:48:01 +0100
Subject: [PATCH] Fixing endpoint URL in template

---
 chart/Chart.yaml         | 2 +-
 chart/files/mapcache.xml | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/chart/Chart.yaml b/chart/Chart.yaml
index 3fdfe379..676d4188 100644
--- a/chart/Chart.yaml
+++ b/chart/Chart.yaml
@@ -7,7 +7,7 @@ type: application
 # This is the chart version. This version number should be incremented each time you make changes
 # to the chart and its templates, including the app version.
 # Versions are expected to follow Semantic Versioning (https://semver.org/)
-version: 0.3.0
+version: 0.3.1
 
 # This is the version number of the application being deployed. This version number should be
 # incremented each time you make changes to the application.
diff --git a/chart/files/mapcache.xml b/chart/files/mapcache.xml
index c83453ec..51a6b379 100644
--- a/chart/files/mapcache.xml
+++ b/chart/files/mapcache.xml
@@ -65,7 +65,7 @@
   </cache>
   {{- else if eq .Values.config.objectStorage.cache.type "S3" }}
   <cache name="cache" type="S3">
-    <url>{{ endpoint_url }}/{tileset}/{grid}/{z}/{x}/{y}/{ext}</url>
+    <url>{{ .Values.config.objectStorage.cache.endpoint_url }}/{tileset}/{grid}/{z}/{x}/{y}/{ext}</url>
     <!-- <headers>
       <Host>foo.s3.amazonaws.com</Host>
     </headers> -->
-- 
GitLab