Skip to content

Commit

Permalink
Also check for existing keystore file in bootstrap pod
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Baumgarten <[email protected]>
  • Loading branch information
markbaumgarten committed Jan 17, 2025
1 parent 3b911d9 commit 050a6b3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions opensearch-operator/pkg/builders/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,9 @@ func NewBootstrapPod(
#!/usr/bin/env bash
set -euo pipefail
/usr/share/opensearch/bin/opensearch-keystore create
if [ ! -f /usr/share/opensearch/config/opensearch.keystore ]; then
/usr/share/opensearch/bin/opensearch-keystore create
fi
for i in /tmp/keystoreSecrets/*/*; do
key=$(basename $i)
echo "Adding file $i to keystore key $key"
Expand Down Expand Up @@ -1256,4 +1258,4 @@ func NewServiceMonitor(cr *opsterv1.OpenSearchCluster) *monitoring.ServiceMonito
NamespaceSelector: namespaceSelector,
},
}
}
}

0 comments on commit 050a6b3

Please sign in to comment.