change to captain and commander
All checks were successful
Github Actions Demo / Explore-Gitea-Actions (push) Successful in 5s

This commit is contained in:
James Andariese 2024-03-04 23:23:07 -06:00
parent d7afd09da5
commit 4cc3953dd1

View File

@ -2,8 +2,14 @@
cd /root cd /root
/bin/ipfs-key "$@" 2> /root/keygen.stderr 1> peer.key /bin/ipfs-key "$@" 2> /root/keygen.stderr 1> captain.key
awk '/^ID for generated key:/ {print $5}' < keygen.stderr > peer.id awk '/^ID for generated key:/ {print $5}' < keygen.stderr > captain.id
rm /root/keygen.stderr
/bin/ipfs-key "$@" 2> /root/keygen.stderr 1> commander.key
awk '/^ID for generated key:/ {print $5}' < keygen.stderr > commander.id
rm /root/keygen.stderr
xxd -p -l 32 -c 32 /dev/random | tr -d '\n' > cluster.key xxd -p -l 32 -c 32 /dev/random | tr -d '\n' > cluster.key
cat << EOF cat << EOF
@ -13,8 +19,10 @@ kind: ConfigMap
metadata: metadata:
name: ipfs-config name: ipfs-config
data: data:
bootstrap-peer-id: |- captain-id: |-
$(cat peer.id) $(cat captain.id)
commander-id: |-
$(cat commander.id)
--- ---
apiVersion: v1 apiVersion: v1
kind: Secret kind: Secret
@ -24,6 +32,8 @@ stringData:
cluster-secret: |- cluster-secret: |-
$(xxd -p -l 32 -c 32 /dev/random) $(xxd -p -l 32 -c 32 /dev/random)
data: data:
bootstrap-peer-priv-key: |- captain-key: |-
$(base64 -w 0 peer.key) $(base64 -w 0 captain.key)
commander-key: |-
$(base64 -w 0 commander.key)
EOF EOF