Skip to content

Commit 7d4b598

Browse files
authored
fix: use absolute path to opensearch-keystore binary (#27)
It is not in $PATH. Signed-off-by: Scott Leggett <[email protected]>
1 parent 7af9473 commit 7d4b598

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

charts/opensearch/templates/statefulset.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,18 +224,18 @@ spec:
224224
#!/usr/bin/env bash
225225
set -euo pipefail
226226
227-
opensearch-keystore create
227+
{{ .Values.opensearchHome }}/bin/opensearch-keystore create
228228
229229
for i in /tmp/keystoreSecrets/*/*; do
230230
key=$(basename $i)
231231
echo "Adding file $i to keystore key $key"
232-
opensearch-keystore add-file "$key" "$i"
232+
{{ .Values.opensearchHome }}/bin/opensearch-keystore add-file "$key" "$i"
233233
done
234234
235235
# Add the bootstrap password since otherwise the opensearch entrypoint tries to do this on startup
236236
if [ ! -z ${PASSWORD+x} ]; then
237237
echo 'Adding env $PASSWORD to keystore as key bootstrap.password'
238-
echo "$PASSWORD" | opensearch-keystore add -x bootstrap.password
238+
echo "$PASSWORD" | {{ .Values.opensearchHome }}/bin/opensearch-keystore add -x bootstrap.password
239239
fi
240240
241241
cp -a {{ .Values.opensearchHome }}/config/opensearch.keystore /tmp/keystore/

0 commit comments

Comments
 (0)