From 25252b9f190143f61a35c860fb80eb37f522b653 Mon Sep 17 00:00:00 2001 From: Waqar Ahmed Date: Sun, 9 May 2021 03:56:41 +0500 Subject: [PATCH] If keyfile already exists when installing, do not generate a new one --- charts/chia/1.0.0/README.md | 1 - charts/chia/1.0.0/questions.yaml | 2 +- charts/chia/1.0.0/templates/mnemonic-configmap.yaml | 4 +++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/charts/chia/1.0.0/README.md b/charts/chia/1.0.0/README.md index 53fa46dae8..d93ffcf19f 100755 --- a/charts/chia/1.0.0/README.md +++ b/charts/chia/1.0.0/README.md @@ -6,4 +6,3 @@ Introduction ------------ This chart bootstraps CHIA deployment on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager. -[IPFS](https://ipfs.io) is a global, versioned, peer-to-peer filesystem. It combines good ideas from previous systems such Git, BitTorrent, Kademlia, SFS, and the Web. It is like a single bittorrent swarm, exchanging git objects. IPFS provides an interface as simple as the HTTP web, but with permanence built in. You can also mount the world at /ipfs. diff --git a/charts/chia/1.0.0/questions.yaml b/charts/chia/1.0.0/questions.yaml index 898cabb25d..10c57dc81f 100644 --- a/charts/chia/1.0.0/questions.yaml +++ b/charts/chia/1.0.0/questions.yaml @@ -1,6 +1,6 @@ groups: - name: "Storage" - description: "Configure Storage for IPFS" + description: "Configure Storage for Chia" questions: - variable: appVolumeMounts diff --git a/charts/chia/1.0.0/templates/mnemonic-configmap.yaml b/charts/chia/1.0.0/templates/mnemonic-configmap.yaml index 1f706015fc..d025d60490 100644 --- a/charts/chia/1.0.0/templates/mnemonic-configmap.yaml +++ b/charts/chia/1.0.0/templates/mnemonic-configmap.yaml @@ -9,4 +9,6 @@ metadata: data: entrypoint.sh: |- #!/bin/sh - /chia-blockchain/venv/bin/python3 -c "from chia.util.keychain import generate_mnemonic;print(generate_mnemonic())" > /plots/keyfile; + if [ -e /root/as.sh ]; then + /chia-blockchain/venv/bin/python3 -c "from chia.util.keychain import generate_mnemonic;print(generate_mnemonic())" > /plots/keyfile; + fi