Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
use same env variable as application (#272)
Browse files Browse the repository at this point in the history
use same env variable as application
  • Loading branch information
Crazybus authored Sep 19, 2019
2 parents 573f2f3 + cce7f4d commit 09501fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kibana/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ spec:
local path="${1}"
set -- -XGET -s --fail
if [ -n "${ELASTIC_USERNAME}" ] && [ -n "${ELASTIC_PASSWORD}" ]; then
set -- "$@" -u "${ELASTIC_USERNAME}:${ELASTIC_PASSWORD}"
if [ -n "${ELASTICSEARCH_USERNAME}" ] && [ -n "${ELASTICSEARCH_PASSWORD}" ]; then
set -- "$@" -u "${ELASTICSEARCH_USERNAME}:${ELASTICSEARCH_PASSWORD}"
fi
curl -k "$@" "{{ .Values.protocol }}://localhost:{{ .Values.httpPort }}${path}"
Expand Down

0 comments on commit 09501fe

Please sign in to comment.