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

Commit

Permalink
[elasticsearch] use bash for keystore init container (#1464) (#1465)
Browse files Browse the repository at this point in the history
This commit is a follow up of 167278e and is updating the keystore
initContainer to also use bash instead of sh. This is required for
Elasticsearch > 7.16.0 because the Docker image is now based on Ubuntu
instead of CentOS 8, and sh on Ubuntu isn't compatible with the
`if [[... -eq ... ]]` statements.
  • Loading branch information
jmlrt authored Dec 13, 2021
1 parent 651cfd9 commit d14d127
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions elasticsearch/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,9 @@ spec:
image: "{{ .Values.image }}:{{ .Values.imageTag }}"
imagePullPolicy: "{{ .Values.imagePullPolicy }}"
command:
- sh
- bash
- -c
- |
#!/usr/bin/env bash
set -euo pipefail
elasticsearch-keystore create
Expand Down Expand Up @@ -230,7 +229,7 @@ spec:
- bash
- -c
- |
#!/usr/bin/env bash -e
set -e
# If the node is starting up wait for the cluster to be ready (request params: "{{ .Values.clusterHealthCheckParams }}" )
# Once it has started only check that the node itself is responding
START_FILE=/tmp/.es_start_file
Expand Down

0 comments on commit d14d127

Please sign in to comment.