diff --git a/charts/vs-registrar/files/registrar-config.yaml b/charts/vs-registrar/files/registrar-config.yaml index a26506e00c53907d2b9d160e8ea30d35c0cab45b..bf770814482608b0841de1ad9eb3051c6e276150 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 -}}