Skip to content

Commit

Permalink
add new polkadot option
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasochem committed Oct 20, 2024
1 parent 9a90a27 commit f43af81
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions charts/polkadot/scripts/polkadot-node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ if [ ! -z "$OUT_PEERS" ]; then
out_peers_param="--out-peers=${OUT_PEERS}"
fi

if [ ! -z "$NO_TELEMETRY" ]; then
no_telemetry_param="--no-telemetry"
fi

if [ ! -z "$TELEMETRY_URL" ]; then
telemetry_url_param="--telemetry-url \"$TELEMETRY_URL 0\""
fi
Expand Down Expand Up @@ -56,6 +60,7 @@ eval /usr/bin/polkadot --validator --wasm-execution Compiled \
$node_key_param \
$name_param \
$telemetry_url_param \
$no_telemetry_param \
$chain_param \
$public_address_param \
$local_peer_param
3 changes: 3 additions & 0 deletions charts/polkadot/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ apiVersion: v1
data:
ARCHIVE_URL: "{{ .Values.polkadot_archive_url }}"
TELEMETRY_URL: "{{ .Values.polkadot_telemetry_url }}"
{{- if .Values.no_telemetry }}
NO_TELEMETRY: "true"
{{- end }}
VALIDATOR_NAME: "{{ .Values.polkadot_validator_name }}"
OUT_PEERS: "{{ .Values.number_of_out_peers }}"
IN_PEERS: "{{ .Values.number_of_in_peers }}"
Expand Down
4 changes: 4 additions & 0 deletions charts/polkadot/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ polkadot_k8s_images:

#polkadot_archive_url:

# customize telemetry url
polkadot_telemetry_url: null

# set to true to not upload any telemetry
no_telemetry: false

polkadot_validator_name: polkadot_k8s_pulumi

number_of_out_peers: 10
Expand Down

0 comments on commit f43af81

Please sign in to comment.