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)
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 b3da68f commit 4e31e0c
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
# Exit if ELASTIC_PASSWORD in unset
if [ -z "${ELASTIC_PASSWORD}" ]; then
Expand Down

0 comments on commit 4e31e0c

Please sign in to comment.