diff --git a/helm/cheqd/Chart.yaml b/helm/cheqd/Chart.yaml index e179594f0f..f07b61d583 100644 --- a/helm/cheqd/Chart.yaml +++ b/helm/cheqd/Chart.yaml @@ -3,7 +3,7 @@ name: cheqd description: A Helm chart to deploy Cheqd localnet node in Kubernetes type: application version: 0.1.0 -appVersion: 4.1.6 +appVersion: 4.2.0 # dependencies: # - name: common diff --git a/helm/cheqd/conf/localnet/values.yaml b/helm/cheqd/conf/localnet/values.yaml index 3dd9264a16..a8866c319b 100644 --- a/helm/cheqd/conf/localnet/values.yaml +++ b/helm/cheqd/conf/localnet/values.yaml @@ -1,6 +1,6 @@ # https://github.com/cheqd/cheqd-node image: - tag: 4.1.6 + tag: 4.2.0 podLabels: sidecar.istio.io/inject: "false" @@ -44,6 +44,8 @@ network: localnet config: app_toml: minimum-gas-prices: 50ncheq + pricefeeder: + enable: true config_toml: moniker: ACA-Py Cloud Cheqd Localnet log_level: warn # Options: trace, debug, info, warn, error, fatal, panic diff --git a/helm/cheqd/templates/statefulset.yaml b/helm/cheqd/templates/statefulset.yaml index c9163ab29d..3be3fdbadc 100644 --- a/helm/cheqd/templates/statefulset.yaml +++ b/helm/cheqd/templates/statefulset.yaml @@ -164,6 +164,24 @@ spec: - name: data mountPath: /cheqd {{- end }} + - name: download-price-feeder + image: docker.io/busybox + imagePullPolicy: IfNotPresent + command: + - sh + - -c + - | + mkdir -p /cheqd/config + if [ ! -f /cheqd/config/price-feeder.toml ]; then + echo "Price feeder config not found, downloading..." + wget -qO /cheqd/config/price-feeder.toml \ + https://raw.githubusercontent.com/cheqd/cheqd-node/refs/tags/v{{ .Values.image.tag | default .Chart.AppVersion }}/pricefeeder/price-feeder.toml + else + echo "Price feeder config already exists, skipping download." + fi + volumeMounts: + - name: data + mountPath: /cheqd {{- if .Values.lbService.enabled }} - name: discover-lb-hostname image: ghcr.io/didx-xyz/bitnami-oss/kubectl:latest diff --git a/helm/cheqd/values.yaml b/helm/cheqd/values.yaml index 61ed70aafe..efd3bba59b 100644 --- a/helm/cheqd/values.yaml +++ b/helm/cheqd/values.yaml @@ -489,6 +489,17 @@ config: # implementations. max-txs: 5000 + ############################################################################### + ### Price Feeder Configuration ### + ############################################################################### + pricefeeder: + # Absolute path to the price feeder configuration file. + config_path: /home/cheqd/.cheqdnode/config/price-feeder.toml + # Enable defines if the price feeder service should be enabled. + enable: false + # Log level for the price feeder sidecar service. + log_level: info + config_toml: ####################################################################### ### Main Base Config Options ###