mirror of
https://github.com/datahaven-xyz/datahaven
synced 2026-05-24 01:38:32 +00:00
## Summary Adds `--chainspec` parameter to the DataHaven CLI deploy command for using custom chainspec files across all environments. ## Usage ```bash # Deploy with custom chainspec bun cli deploy --environment testnet --chainspec /absolute/path/to/chainspec.json # Normal deployment (unchanged) bun cli deploy --environment testnet ``` ## Changes - **CLI**: Added `--chainspec <value>` parameter with absolute path validation - **Helm**: New ConfigMap template and init container for custom chainspecs - **Bootnode**: Conditionally uses custom chainspec or generates dynamically - **Distribution**: Bootnode serves chainspec via HTTP, validators download from bootnode --------- Co-authored-by: Claude <noreply@anthropic.com>
12 lines
No EOL
310 B
YAML
12 lines
No EOL
310 B
YAML
{{- if .Values.customChainspecContent }}
|
|
{{- $fullname := include "node.fullname" . }}
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: {{ $fullname }}-custom-chainspec
|
|
labels:
|
|
{{- include "node.labels" . | nindent 4 }}
|
|
data:
|
|
chainspec.json: |
|
|
{{ .Values.customChainspecContent | indent 4 }}
|
|
{{- end }} |