Skip to content

Commit 33efc07

Browse files
committed
feat(charts): add initContainer configuration for TCP checks
- Introduced additional init container configuration in values.yaml for TCP dependency checks. - Updated comments to ensure clarity and compatibility with helm-docs format. - Documented new fields including tcpCheck settings, image details, timeout, and resource limits.
1 parent 53c962a commit 33efc07

File tree

2 files changed

+3
-37
lines changed

2 files changed

+3
-37
lines changed

charts/network/README.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@ A Helm chart for a blockchain network on Kubernetes
2121

2222
| Key | Type | Default | Description |
2323
|-----|------|---------|-------------|
24-
| extraInitContainers | list | `[]` | Additional init containers appended verbatim to each workload. |
25-
| global | object | `{"chainId":13456,"networkNodes":{"faucetArtifactPrefix":"besu-faucet","genesisConfigMapName":"besu-genesis","podPrefix":"","serviceName":"","staticNodesConfigMapName":"besu-static-nodes"},"securityContexts":{"container":{},"pod":{}}}` | Global configuration shared across subcharts. |
26-
| global.chainId | int | `13456` | Chain ID applied when charts omit explicit overrides. |
24+
| global | object | `{"chainId":null,"networkNodes":{"faucetArtifactPrefix":"besu-faucet","genesisConfigMapName":"besu-genesis","podPrefix":"","serviceName":"","staticNodesConfigMapName":"besu-static-nodes"},"securityContexts":{"container":{},"pod":{}}}` | Global configuration shared across subcharts. |
25+
| global.chainId | int | `nil` | Chain ID applied when charts omit explicit overrides. |
2726
| global.networkNodes | object | `{"faucetArtifactPrefix":"besu-faucet","genesisConfigMapName":"besu-genesis","podPrefix":"","serviceName":"","staticNodesConfigMapName":"besu-static-nodes"}` | Defaults consumed by Besu network node workloads. |
2827
| global.networkNodes.faucetArtifactPrefix | string | `"besu-faucet"` | Prefix used for faucet ConfigMaps and Secrets. |
2928
| global.networkNodes.genesisConfigMapName | string | `"besu-genesis"` | ConfigMap name storing the generated genesis.json artifact. |
@@ -33,10 +32,3 @@ A Helm chart for a blockchain network on Kubernetes
3332
| global.securityContexts | object | `{"container":{},"pod":{}}` | Shared pod- and container-level security contexts applied when subcharts omit explicit overrides. |
3433
| global.securityContexts.container | object | `{}` | Container security context inherited by subcharts when set. |
3534
| global.securityContexts.pod | object | `{}` | Pod security context inherited by subcharts when set. |
36-
| initContainer | object | `{"tcpCheck":{"dependencies":[],"enabled":false,"image":{"pullPolicy":"IfNotPresent","repository":"ghcr.io/settlemint/btp-waitforit","tag":"v7.7.10"},"resources":{"limits":{"cpu":"100m","memory":"64Mi"},"requests":{"cpu":"10m","memory":"32Mi"}},"timeout":120}}` | Init container configuration shared by subcharts. |
37-
| initContainer.tcpCheck.dependencies | list | `[]` | TCP dependencies expressed as name/endpoint pairs (host:port). |
38-
| initContainer.tcpCheck.enabled | bool | `false` | Enable the TCP dependency check init container by default. |
39-
| initContainer.tcpCheck.image.pullPolicy | string | `"IfNotPresent"` | Image pull policy for the tcp-check init container. |
40-
| initContainer.tcpCheck.image.repository | string | `"ghcr.io/settlemint/btp-waitforit"` | OCI image hosting the tcp-check utility. |
41-
| initContainer.tcpCheck.image.tag | string | `"v7.7.10"` | Image tag for the tcp-check utility. |
42-
| initContainer.tcpCheck.timeout | int | `120` | Timeout in seconds applied to each dependency probe. |

charts/network/values.yaml

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -15,37 +15,11 @@ global:
1515
# -- (string) Prefix used for faucet ConfigMaps and Secrets.
1616
faucetArtifactPrefix: besu-faucet
1717
# -- (int) Chain ID applied when charts omit explicit overrides.
18-
chainId: 13456
18+
chainId:
1919
# -- (object) Shared pod- and container-level security contexts applied when subcharts omit explicit overrides.
2020
securityContexts:
2121
# -- (object) Pod security context inherited by subcharts when set.
2222
pod: {}
2323
# -- (object) Container security context inherited by subcharts when set.
2424
container: {}
2525

26-
# -- (object) Init container configuration shared by subcharts.
27-
initContainer:
28-
tcpCheck:
29-
# -- (bool) Enable the TCP dependency check init container by default.
30-
enabled: false
31-
image:
32-
# -- (string) OCI image hosting the tcp-check utility.
33-
repository: ghcr.io/settlemint/btp-waitforit
34-
# -- (string) Image tag for the tcp-check utility.
35-
tag: v7.7.10
36-
# -- (string) Image pull policy for the tcp-check init container.
37-
pullPolicy: IfNotPresent
38-
# -- (int) Timeout in seconds applied to each dependency probe.
39-
timeout: 120
40-
resources:
41-
limits:
42-
cpu: 100m
43-
memory: 64Mi
44-
requests:
45-
cpu: 10m
46-
memory: 32Mi
47-
# -- (list) TCP dependencies expressed as name/endpoint pairs (host:port).
48-
dependencies: []
49-
50-
# -- (list) Additional init containers appended verbatim to each workload.
51-
extraInitContainers: []

0 commit comments

Comments
 (0)