From 7070760160c327dc7602f58ad0ac9a3676777803 Mon Sep 17 00:00:00 2001
From: Lubomir Dolezal <lubomir.bucek@eox.at>
Date: Mon, 7 Feb 2022 12:22:46 +0100
Subject: [PATCH] allow to configure eoxserver instance base path

registrar - added to default values
modified on operational prism envs via values
---
 charts/vs-registrar/files/registrar-config.yaml | 4 ++--
 charts/vs-registrar/values.yaml                 | 2 ++
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/charts/vs-registrar/files/registrar-config.yaml b/charts/vs-registrar/files/registrar-config.yaml
index 4b5f6f5..718cee3 100644
--- a/charts/vs-registrar/files/registrar-config.yaml
+++ b/charts/vs-registrar/files/registrar-config.yaml
@@ -36,8 +36,8 @@ backends:
   - type: eoxserver
     path: registrar.backend.eoxserver.EOxServerBackend
     kwargs:
-      instance_base_path: /var/www/pvs/dev
-      instance_name: pvs_instance
+      instance_base_path: {{ .Values.config.eoxserverInstanceBasePath }}
+      instance_name: {{ .Values.config.eoxserverInstanceName }}
       product_types:
       {{- range $prod_type_val := .Values.global.productTypes -}}
       {{- $prod_type_val := unset $prod_type_val "browses" }}
diff --git a/charts/vs-registrar/values.yaml b/charts/vs-registrar/values.yaml
index 0306348..520c0a6 100644
--- a/charts/vs-registrar/values.yaml
+++ b/charts/vs-registrar/values.yaml
@@ -28,6 +28,8 @@ config:
   pathBackends: []
   preHandlers: []
   postHandlers: []
+  eoxserverInstanceBasePath: "/var/www/pvs/dev"
+  eoxserverInstanceName: "pvs_instance"
 
 global:
   env:
-- 
GitLab