Skip to content

Commit

Permalink
search template helpers cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
alxgomz committed Sep 19, 2023
1 parent b403c05 commit 72b69e2
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions helm/alfresco-content-services/templates/_helpers-search.tpl
Original file line number Diff line number Diff line change
@@ -1,36 +1,3 @@
{{/*
Alfresco Repository index subsystem
*/}}
{{- define "repository.indexSubsystem" -}}
{{- if or (index .Values "alfresco-search" "enabled") (index .Values "alfresco-search" "external" "host") -}}
solr6
{{- else if index .Values "alfresco-search-enterprise" "enabled" -}}
elasticsearch
{{- else -}}
none
{{- end }}
{{- end -}}

{{/*
Alfresco Repository search configuration
*/}}
{{- define "repository.indexConfig" -}}
{{- if index .Values "alfresco-search" "external" "host" }}
-Dsolr.host={{ index .Values "alfresco-search" "external" "host" }}
-Dsolr.port={{ index .Values "alfresco-search" "external" "port" | default 8983 }}
-Dsolr.base.url={{ template "alfresco-search.baseurl" . }}
-Dsolr.secureComms={{ .Values.global.tracking.auth | default "secret" }}
{{- else if index .Values "alfresco-search" "enabled" -}}
{{- $alfrescoSearchContext := dict "Chart" $.Chart "Release" $.Release "Values" (index .Values "alfresco-search") }}
-Dsolr.host={{ template "alfresco-search.host" $alfrescoSearchContext }}
-Dsolr.port={{ template "alfresco-search.svcPort" $alfrescoSearchContext }}
-Dsolr.base.url={{ index .Values "alfresco-search" "ingress" "path" | default "/solr" }}
-Dsolr.secureComms={{ .Values.global.tracking.auth | default "secret" }}
{{- else if index .Values "alfresco-search-enterprise" "enabled" }}
{{- template "repo.elasticsearch.config" . }}
{{- end }}
{{- end -}}

{{/*
Compute the search URL
Expand Down

0 comments on commit 72b69e2

Please sign in to comment.