Unverified Commit 8d9950ef authored by Ben Rifkind's avatar Ben Rifkind Committed by GitHub

fix:Expose elastic search credentials in helm deploy (#925)

* Configure elasticsearch credentials
Signed-off-by: 's avatarbenrifkind <ben.rifkind@gmail.com>

* Move to one map
Signed-off-by: 's avatarbenrifkind <ben.rifkind@gmail.com>
parent ffda8e5a
...@@ -47,6 +47,12 @@ spec: ...@@ -47,6 +47,12 @@ spec:
env: env:
- name: PROXY_ENDPOINT - name: PROXY_ENDPOINT
value: {{ if .Values.search.elasticsearchEndpoint }}{{ .Values.search.elasticsearchEndpoint }}{{ else }}{{ .Release.Name }}-elasticsearch-client.{{ .Release.Namespace }}.svc.cluster.local{{ end }} value: {{ if .Values.search.elasticsearchEndpoint }}{{ .Values.search.elasticsearchEndpoint }}{{ else }}{{ .Release.Name }}-elasticsearch-client.{{ .Release.Namespace }}.svc.cluster.local{{ end }}
{{- if and .Values.search.elasticSearchCredentials (not .Values.elasticsearch.enabled) }}
- name: CREDENTIALS_PROXY_USER
value: {{ .Values.search.elasticSearchCredentials.user }}
- name: CREDENTIALS_PROXY_PASSWORD
value: {{ .Values.search.elasticSearchCredentials.password }}
{{- end }}
livenessProbe: livenessProbe:
httpGet: httpGet:
path: "/healthcheck" path: "/healthcheck"
......
...@@ -62,6 +62,15 @@ search: ...@@ -62,6 +62,15 @@ search:
## ##
elasticsearchEndpoint: elasticsearchEndpoint:
## ##
## search.elasticSearchCredentials -- The elasticsearch user and password. This should only be set if you bring your own elasticsearch cluster in which case you must also set elasticsearch.enabled to false
##
elasticSearchCredentials: {}
# user:
# password:
##
##
## search.image -- The image of the search container.
##
## search.image -- The image of the search container. ## search.image -- The image of the search container.
## ##
image: amundsendev/amundsen-search image: amundsendev/amundsen-search
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment