Skip to content

Commit ec9d0ee

Browse files
authored
feature: expose readinessProbe to the config file for chain, add to doc, fix readinessProbe (#565)
* expose readinessProbe to the config file for chain, add to doc, fix readinessProbe * add patch version release
1 parent cf703bf commit ec9d0ee

File tree

6 files changed

+28
-3
lines changed

6 files changed

+28
-3
lines changed

docs/pages/config/chains.mdx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,3 +351,22 @@ chains:
351351
coins: 100000000000000uion
352352
```
353353

354+
## `readinessProbe` (optional)
355+
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.
356+
Note, this is the same as the [kubernetes readiness probe](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/)
357+
358+
```yaml
359+
chains:
360+
- id: osmosis-1
361+
name: osmosis
362+
numValidators: 1
363+
readinessProbe:
364+
exec:
365+
command:
366+
- bash
367+
- -c
368+
- |
369+
$CHAIN_BIN status 2>&1 | jq -e '.SyncInfo.catching_up == false'
370+
initialDelaySeconds: 60
371+
periodSeconds: 20
372+
```

starship/charts/devnet/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.2.14
18+
version: 0.2.15
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

starship/charts/devnet/defaults.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -689,6 +689,9 @@ defaultChains:
689689
trap 'kill $killer 2>/dev/null' EXIT
690690
# Return the test's exit code, whether it succeeded, failed, or was killed.
691691
wait $tester
692+
initialDelaySeconds: 10
693+
periodSeconds: 10
694+
timeoutSeconds: 15
692695
kujira:
693696
image: ghcr.io/cosmology-tech/starship/kujira:v1.1.0
694697
home: /root/.kujira

starship/charts/devnet/templates/chains/cosmos/genesis.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,10 +287,10 @@ spec:
287287
httpGet:
288288
path: /status
289289
port: 26657
290-
{{- end }}
291290
initialDelaySeconds: 10
292291
periodSeconds: 10
293292
timeoutSeconds: 15
293+
{{- end }}
294294
{{- end }}
295295
- name: exposer
296296
image: {{ $.Values.exposer.image }}

starship/charts/devnet/templates/chains/cosmos/validator.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,10 +292,10 @@ spec:
292292
httpGet:
293293
path: /status
294294
port: 26657
295-
{{- end }}
296295
initialDelaySeconds: 10
297296
periodSeconds: 10
298297
timeoutSeconds: 15
298+
{{- end }}
299299
{{- end }}
300300
- name: exposer
301301
image: {{ $.Values.exposer.image }}

starship/charts/devnet/values.schema.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,9 @@
556556
"amount"
557557
]
558558
}
559+
},
560+
"readinessProbe": {
561+
"type": "object"
559562
}
560563
},
561564
"additionalProperties": false,

0 commit comments

Comments
 (0)