Skip to content

Commit

Permalink
set ES credentials in secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
alxgomz committed Oct 23, 2023
1 parent 7c9c7b1 commit bacd6a0
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions helm/alfresco-content-services/templates/secret-search.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
{{- if eq "secret" .Values.global.search.securecomms }}
{{- with .Values.global.search }}
{{- if or .password (eq "secret" .securecomms) }}
apiVersion: v1
kind: Secret
metadata:
name: {{ .Values.global.search.secretName }}
name: {{ .secretName }}
labels:
{{- include "alfresco-content-services.labels" . | nindent 4 }}
{{- include "alfresco-content-services.labels" $ | nindent 4 }}
type: Opaque
data:
SOLR_SECRET: {{ .Values.global.search.sharedSecret | default "" | b64enc | quote }}
{{- if eq "secret" .securecomms }}
SOLR_SECRET: {{ .sharedSecret | default "" | b64enc | quote }}
{{- else }}
SEARCH_USERNAME: {{ .username | default "" | b64enc | quote }}
SEARCH_PASSWORD: {{ .password | default "" | b64enc | quote }}
{{- end }}
{{- end }}
{{- end }}

0 comments on commit bacd6a0

Please sign in to comment.