Skip to content

Commit

Permalink
Fix cluster bootstrap with static peers enabled
Browse files Browse the repository at this point in the history
Not that this would ever be recommended, but it's technically a possible
configuration and so shouldn't error out.
  • Loading branch information
jtackaberry committed Jan 4, 2024
1 parent dfc7f6d commit 3fb505a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions charts/rqlite/templates/_statefulset.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ spec:
if [ "$RQLITE_USE_STATIC_PEERS" = "true" ]; then
echo "WARNING: Using generated static peers. This is a recovery procedure and must be reverted after service is restored."
cat /config/peers/peers.json
mkdir -p /rqlite/raft
cp /config/peers/peers.json /rqlite/raft
fi
# Exec original entrypoint and pass all arguments through, including $0
Expand Down

0 comments on commit 3fb505a

Please sign in to comment.