Skip to content
This repository has been archived by the owner on Mar 6, 2020. It is now read-only.

Commit

Permalink
/users/admin will fail with default auth on subsequent deployments …
Browse files Browse the repository at this point in the history
…if once we update the password. lets check for 401 status code to check that eventstore is up instead.
  • Loading branch information
ubin committed Mar 5, 2020
1 parent 9a981de commit d4e75b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog
#
# Changelog
#
## 0.2.6: March 4, 2020
- Fixed post install ConfigMap script - check for 401 status code instead of 200 for eventstore to be up.

## 0.2.5: August 30, 2019
- __Potentially breaking__: Add release namespace to all resources to work with `helm template`
See https://github.com/helm/helm/issues/5465 for more information.
Expand Down
2 changes: 1 addition & 1 deletion stable/eventstore/templates/post-install-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ data:
set -e
endpoint="http://{{ include "eventstore.dns" . }}:{{ .Values.extHttpPort }}"
# wait until the admin user is available
while [[ "$(curl -s -u admin:changeit -o /dev/null -w '%{http_code}' $endpoint/users/admin)" != "200" ]]; do
while [[ "$(curl -s -o /dev/null -w '%{http_code}' $endpoint/users/admin)" != "401" ]]; do
echo "waiting for Event Store at $endpoint..."
sleep 5
done
Expand Down

0 comments on commit d4e75b5

Please sign in to comment.