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

[elasticsearch] use bash to run scripts #1457

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 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 @@ -227,10 +226,10 @@ spec:
readinessProbe:
exec:
command:
- sh
- bash
- -c
- |
#!/usr/bin/env bash -e
set -e

# Exit if ELASTIC_PASSWORD in unset
if [ -z "${ELASTIC_PASSWORD}" ]; then
Expand Down