diff --git a/docs/pages/config/chains.mdx b/docs/pages/config/chains.mdx index ff17c549..526c0e7f 100644 --- a/docs/pages/config/chains.mdx +++ b/docs/pages/config/chains.mdx @@ -351,3 +351,22 @@ chains: coins: 100000000000000uion ``` +## `readinessProbe` (optional) +The `readinessProbe` directive allows you to set the readiness probe for the chain pods. This is useful when you want to test a chain with specific readiness probe settings. +Note, this is the same as the [kubernetes readiness probe](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/) + +```yaml +chains: +- id: osmosis-1 + name: osmosis + numValidators: 1 + readinessProbe: + exec: + command: + - bash + - -c + - | + $CHAIN_BIN status 2>&1 | jq -e '.SyncInfo.catching_up == false' + initialDelaySeconds: 60 + periodSeconds: 20 +``` diff --git a/starship/charts/devnet/defaults.yaml b/starship/charts/devnet/defaults.yaml index 83e7c49a..4383c353 100644 --- a/starship/charts/devnet/defaults.yaml +++ b/starship/charts/devnet/defaults.yaml @@ -689,6 +689,9 @@ defaultChains: trap 'kill $killer 2>/dev/null' EXIT # Return the test's exit code, whether it succeeded, failed, or was killed. wait $tester + initialDelaySeconds: 10 + periodSeconds: 10 + timeoutSeconds: 15 kujira: image: ghcr.io/cosmology-tech/starship/kujira:v1.1.0 home: /root/.kujira diff --git a/starship/charts/devnet/templates/chains/cosmos/genesis.yaml b/starship/charts/devnet/templates/chains/cosmos/genesis.yaml index f5da9e06..7748d34d 100644 --- a/starship/charts/devnet/templates/chains/cosmos/genesis.yaml +++ b/starship/charts/devnet/templates/chains/cosmos/genesis.yaml @@ -287,10 +287,10 @@ spec: httpGet: path: /status port: 26657 - {{- end }} initialDelaySeconds: 10 periodSeconds: 10 timeoutSeconds: 15 + {{- end }} {{- end }} - name: exposer image: {{ $.Values.exposer.image }} diff --git a/starship/charts/devnet/templates/chains/cosmos/validator.yaml b/starship/charts/devnet/templates/chains/cosmos/validator.yaml index fab591ee..3e9438e1 100644 --- a/starship/charts/devnet/templates/chains/cosmos/validator.yaml +++ b/starship/charts/devnet/templates/chains/cosmos/validator.yaml @@ -292,10 +292,10 @@ spec: httpGet: path: /status port: 26657 - {{- end }} initialDelaySeconds: 10 periodSeconds: 10 timeoutSeconds: 15 + {{- end }} {{- end }} - name: exposer image: {{ $.Values.exposer.image }} diff --git a/starship/charts/devnet/values.schema.json b/starship/charts/devnet/values.schema.json index 5549369d..5d2fe6fe 100644 --- a/starship/charts/devnet/values.schema.json +++ b/starship/charts/devnet/values.schema.json @@ -556,6 +556,9 @@ "amount" ] } + }, + "readinessProbe": { + "type": "object" } }, "additionalProperties": false,