Skip to content

Commit

Permalink
render a search secret if any type of search is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
alxgomz committed Oct 23, 2023
1 parent 9e0677e commit d73e48c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions helm/alfresco-content-services/templates/secret-search.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{{- $search_flavor := (include "alfresco-content-services.search.flavor" .) }}
{{- if ne "noindex" $search_flavor }}
{{- with .Values.global.search }}
{{- if or .password (eq "secret" .securecomms) }}
apiVersion: v1
kind: Secret
metadata:
Expand All @@ -10,7 +11,8 @@ type: Opaque
data:
{{- if eq "secret" .securecomms }}
SOLR_SECRET: {{ .sharedSecret | default "" | b64enc | quote }}
{{- else }}
{{- end }}
{{- if eq "elasticsearch" (include "alfresco-content-services.search.flavor" $) }}
SEARCH_USERNAME: {{ .username | default "" | b64enc | quote }}
SEARCH_PASSWORD: {{ .password | default "" | b64enc | quote }}
{{- end }}
Expand Down

0 comments on commit d73e48c

Please sign in to comment.