Skip to content

Commit

Permalink
feature: expose readinessProbe to the config file for chain, add to d…
Browse files Browse the repository at this point in the history
…oc, fix readinessProbe (#565)

* expose readinessProbe to the config file for chain, add to doc, fix readinessProbe

* add patch version release
  • Loading branch information
Anmol1696 authored Oct 7, 2024
1 parent cf703bf commit ec9d0ee
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 3 deletions.
19 changes: 19 additions & 0 deletions docs/pages/config/chains.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
2 changes: 1 addition & 1 deletion starship/charts/devnet/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.2.14
version: 0.2.15

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
3 changes: 3 additions & 0 deletions starship/charts/devnet/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
3 changes: 3 additions & 0 deletions starship/charts/devnet/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,9 @@
"amount"
]
}
},
"readinessProbe": {
"type": "object"
}
},
"additionalProperties": false,
Expand Down

0 comments on commit ec9d0ee

Please sign in to comment.