Skip to content

feature: intial testing for comparisions between older helm exports #714

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -15,41 +15,37 @@ metadata:
spec:
clusterIP: None
ports:
- name: p2p
port: 26656
protocol: TCP
targetPort: '26656'
- name: address
port: 26658
protocol: TCP
targetPort: '26658'
targetPort: 26658
- name: grpc
port: 9090
protocol: TCP
targetPort: '9090'
targetPort: 9090
- name: grpc-web
port: 9091
protocol: TCP
targetPort: '9091'
targetPort: 9091
- name: p2p
port: 26656
protocol: TCP
targetPort: 26656
- name: rest
port: 1317
protocol: TCP
targetPort: '1317'
targetPort: 1317
- name: rpc
port: 26657
protocol: TCP
targetPort: '26657'
- name: metrics
port: 26660
protocol: TCP
targetPort: '26660'
targetPort: 26657
- name: exposer
port: 8081
protocol: TCP
targetPort: '8081'
targetPort: 8081
- name: faucet
port: 8000
protocol: TCP
targetPort: '8000'
targetPort: 8000
selector:
app.kubernetes.io/name: core-1-genesis
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,12 @@ spec:
command:
- bash
- '-c'
- >-
- |-
# Install cosmovisor

go install
github.com/cosmos/cosmos-sdk/cosmovisor/cmd/[email protected]

go install github.com/cosmos/cosmos-sdk/cosmovisor/cmd/[email protected]

# Build genesis

UPGRADE_NAME=genesis CODE_TAG=v7.0.0 bash -e
/scripts/build-chain.sh
UPGRADE_NAME=genesis CODE_TAG=v7.0.0 bash -e /scripts/build-chain.sh
env:
- name: CODE_REF
value: https://github.com/persistenceOne/persistenceCore
Expand Down Expand Up @@ -111,6 +106,22 @@ spec:
value: persistenceCore
- name: CHAIN_ID
value: core-1
- name: TIME_IOTA_MS
value: '10'
- name: TIMEOUT_PROPOSE
value: 400ms
- name: TIMEOUT_PROPOSE_DELTA
value: 400ms
- name: TIMEOUT_PREVOTE
value: 400ms
- name: TIMEOUT_PREVOTE_DELTA
value: 400ms
- name: TIMEOUT_PRECOMMIT
value: 400ms
- name: TIMEOUT_PRECOMMIT_DELTA
value: 400ms
- name: TIMEOUT_COMMIT
value: 800ms
- name: KEYS_CONFIG
value: /configs/keys.json
- name: FAUCET_ENABLED
Expand All @@ -122,47 +133,31 @@ spec:
command:
- bash
- '-c'
- >-
- |-
VAL_INDEX=${HOSTNAME##*-}

echo "Validator Index: $VAL_INDEX"


cp $CHAIN_DIR/cosmovisor/genesis/bin/$CHAIN_BIN /usr/bin


if [ -f $CHAIN_DIR/config/genesis.json ]; then
echo "Genesis file exists, exiting init container"
exit 0
fi


echo "Running setup genesis script..."

bash -e /scripts/create-genesis.sh

bash -e /scripts/update-genesis.sh


echo "Create node id json file"

NODE_ID=$($CHAIN_BIN tendermint show-node-id)

echo '{"node_id":"'$NODE_ID'"}' > $CHAIN_DIR/config/node_id.json


echo "Create consensus key json file"

$CHAIN_BIN tendermint show-validator >
$CHAIN_DIR/config/consensus_key.json

$CHAIN_BIN tendermint show-validator > $CHAIN_DIR/config/consensus_key.json
cat $CHAIN_DIR/config/consensus_key.json


echo "Add custom accounts and balances"

CHAIN_GENESIS_CMD=$($CHAIN_BIN 2>&1 | grep -q "genesis-related
subcommands" && echo "genesis" || echo "")
CHAIN_GENESIS_CMD=$($CHAIN_BIN 2>&1 | grep -q "genesis-related subcommands" && echo "genesis" || echo "")
resources:
limits:
cpu: '2'
Expand Down Expand Up @@ -197,6 +192,22 @@ spec:
value: persistenceCore
- name: CHAIN_ID
value: core-1
- name: TIME_IOTA_MS
value: '10'
- name: TIMEOUT_PROPOSE
value: 400ms
- name: TIMEOUT_PROPOSE_DELTA
value: 400ms
- name: TIMEOUT_PREVOTE
value: 400ms
- name: TIMEOUT_PREVOTE_DELTA
value: 400ms
- name: TIMEOUT_PRECOMMIT
value: 400ms
- name: TIMEOUT_PRECOMMIT_DELTA
value: 400ms
- name: TIMEOUT_COMMIT
value: 800ms
- name: KEYS_CONFIG
value: /configs/keys.json
- name: METRICS
Expand Down Expand Up @@ -309,7 +320,7 @@ spec:
periodSeconds: 10
timeoutSeconds: 15
- name: exposer
image: ghcr.io/cosmology-tech/starship/exposer:latest
image: ghcr.io/hyperweb-io/starship/exposer:20250205-544757d
imagePullPolicy: IfNotPresent
env:
- name: GENESIS_HOST
Expand Down Expand Up @@ -340,11 +351,11 @@ spec:
- exposer
resources:
limits:
cpu: '0.1'
memory: 128M
cpu: '0.2'
memory: 200M
requests:
cpu: '0.1'
memory: 128M
cpu: '0.2'
memory: 200M
volumeMounts:
- mountPath: /root/.persistenceCore
name: node
Expand All @@ -367,13 +378,10 @@ spec:
command:
- bash
- '-c'
- >-
- |-
CREDIT_COINS=""

FEES=""

for coin in ${COINS//,/ }

do
amt="${coin//[!0-9]/}"
denom="${coin//[0-9]/}"
Expand All @@ -396,20 +404,14 @@ spec:
fi
done


export FAUCET_MNEMONIC=$(jq -r ".faucet[0].mnemonic"
/configs/keys.json)

export FAUCET_MNEMONIC=$(jq -r ".faucet[0].mnemonic" /configs/keys.json)

export | grep "FAUCET"


until bash -e /scripts/chain-rpc-ready.sh http://localhost:26657;
do
until bash -e /scripts/chain-rpc-ready.sh http://localhost:26657; do
sleep 10
done


/faucet/faucet --credit-coins="$CREDIT_COINS" --chain-fees="$FEES"
resources:
limits:
Expand All @@ -428,7 +430,7 @@ spec:
readinessProbe:
httpGet:
path: /status
port: '8000'
port: 8000
initialDelaySeconds: 30
periodSeconds: 10
volumes:
Expand Down
Loading
Loading