Skip to content

Commit

Permalink
fix libp2p and swarm keys setting if more then 10 keys
Browse files Browse the repository at this point in the history
  • Loading branch information
vandot committed Oct 1, 2020
1 parent a7fdf94 commit 35296ab
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/bee/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
appVersion: latest
name: bee
version: 0.5.13
version: 0.5.14
description: Ethereum Swarm Bee Helm chart for Kubernetes
home: https://swarm.ethereum.org
icon: https://swarm-guide.readthedocs.io/en/latest/_images/swarm.png
Expand Down
4 changes: 2 additions & 2 deletions charts/bee/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ apps:
namespace: bee
description: "Ethereum Swarm Bee"
chart: "ethersphere/bee"
version: "0.5.13"
version: "0.5.14"
enabled: true
set:
beeConfig.bootnode: # bootnode multi address
Expand Down Expand Up @@ -118,7 +118,7 @@ apps:
namespace: bee
description: "Ethereum Swarm Bee"
chart: "ethersphere/bee"
version: "0.5.13"
version: "0.5.14"
enabled: true
set:
beeConfig.bootnode: "/dns4/bee-0-headless.bee.svc.cluster.local/tcp/7070/p2p/16Uiu2HAm6i4dFaJt584m2jubyvnieEECgqM2YMpQ9nusXfy8XFzL"
Expand Down
4 changes: 2 additions & 2 deletions charts/bee/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ spec:
export INDEX=$(echo $(hostname) | rev | cut -d'-' -f 1 | rev);
mkdir -p /home/bee/.bee/keys;
chown -R 999:999 /home/bee/.bee/keys;
export KEY=$(cat /tmp/bee/libp2p.map | grep bee-${INDEX} | cut -d' ' -f2);
export KEY=$(cat /tmp/bee/libp2p.map | grep bee-${INDEX}: | cut -d' ' -f2);
if [ -z "${KEY}" ]; then exit 0; fi;
printf '%s' "${KEY}" > /home/bee/.bee/keys/libp2p.key;
echo 'node initialization done';
Expand All @@ -74,7 +74,7 @@ spec:
export INDEX=$(echo $(hostname) | rev | cut -d'-' -f 1 | rev);
mkdir -p /home/bee/.bee/keys;
chown -R 999:999 /home/bee/.bee/keys;
export KEY=$(cat /tmp/bee/swarm.map | grep bee-${INDEX} | cut -d' ' -f2);
export KEY=$(cat /tmp/bee/swarm.map | grep bee-${INDEX}: | cut -d' ' -f2);
if [ -z "${KEY}" ]; then exit 0; fi;
printf '%s' "${KEY}" > /home/bee/.bee/keys/swarm.key;
echo 'node initialization done';
Expand Down

0 comments on commit 35296ab

Please sign in to comment.