From d6a14d22ebfb86b3612717ac2edba09c4f7af903 Mon Sep 17 00:00:00 2001
From: Lubomir Dolezal <lubomir.bucek@eox.at>
Date: Mon, 16 May 2022 12:47:58 +0200
Subject: [PATCH] browses removal at registrar config with a
 removeBrowsesFromConfig flag

---
 charts/vs-registrar/files/registrar-config.yaml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/charts/vs-registrar/files/registrar-config.yaml b/charts/vs-registrar/files/registrar-config.yaml
index a26506e..bf77081 100644
--- a/charts/vs-registrar/files/registrar-config.yaml
+++ b/charts/vs-registrar/files/registrar-config.yaml
@@ -42,6 +42,9 @@ backends:
       instance_name: {{ .Values.config.eoxserverInstanceName }}
       product_types:
       {{- range $prod_type_val := .Values.global.productTypes -}}
+      {{- if ( $.Values.config.removeBrowsesFromConfig ) }}
+        {{- $prod_type_val := unset $prod_type_val "browses" }}
+      {{- end }}
       {{- $prod_type_val := unset $prod_type_val "defaultBrowse" }}
       -{{- toYaml $prod_type_val | nindent 10 -}}
       {{- end -}}
-- 
GitLab