Skip to content

Commit

Permalink
fix: Helm chart statefulset has incorrect config for uploader sidecars (
Browse files Browse the repository at this point in the history
#150)

Signed-off-by: Deepak Mishra <deepak@swirldslabs.com>
  • Loading branch information
deepak-swirlds authored Jul 10, 2023
1 parent 7854131 commit eb52514
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 24 deletions.
27 changes: 4 additions & 23 deletions charts/hedera-network/templates/configmaps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,27 +21,6 @@ data:
---
apiVersion: v1
kind: ConfigMap
metadata:
name: record-stream-uploader-config
data:
DEBUG: "{{ $.Values.mirror.debug }}"
REAPER_ENABLE: "{{ $.Values.mirror.reaper.enable }}"
REAPER_MIN_KEEP: "{{ $.Values.mirror.reaper.minKeep }}"
REAPER_INTERVAL: "{{ $.Values.mirror.reaper.interval }}"
REAPER_DEFAULT_BACKOFF: "{{ $.Values.mirror.reaper.defaultBackoff }}"
STREAM_FILE_EXTENSION: "rcd"
STREAM_SIG_EXTENSION: "rcd_sig"
STREAM_EXTENSION: "rcd"
S3_ENABLE: "{{ $.Values.mirror.s3.enable }}"
GCS_ENABLE: "{{ $.Values.mirror.gcs.enable }}"
SIG_REQUIRE: "{{ $.Values.mirror.sig.require }}"
SIG_PRIORITIZE: "{{ $.Values.mirror.sig.prioritize }}"
SIG_EXTENSION: "rcd_sig"
BUCKET_PATH: "{{ $.Values.mirror.recordStream.bucketPath }}"
BUCKET_NAME: "{{ $.Values.mirror.recordStream.bucketName }}"
---
apiVersion: v1
kind: ConfigMap
metadata:
name: event-stream-uploader-config
data:
Expand All @@ -64,7 +43,7 @@ data:
apiVersion: v1
kind: ConfigMap
metadata:
name: record-stream-sidecar-config
name: record-stream-uploader-config
data:
DEBUG: "{{ $.Values.mirror.debug }}"
REAPER_ENABLE: "{{ $.Values.mirror.reaper.enable }}"
Expand All @@ -73,7 +52,9 @@ data:
REAPER_DEFAULT_BACKOFF: "{{ $.Values.mirror.reaper.defaultBackoff }}"
STREAM_FILE_EXTENSION: "rcd"
STREAM_SIG_EXTENSION: "rcd_sig"
STREAM_EXTENSION: "rcd"
STREAM_EXTENSION: {{ $.Values.mirror.recordStream.compression | ternary "rcd.gz" "rcd" }}
RECORD_STREAM_COMPRESSION: "{{ $.Values.mirror.recordStream.compression }}"
RECORD_STREAM_SIDECAR: "{{ $.Values.mirror.recordStream.sidecar }}"
S3_ENABLE: "{{ $.Values.mirror.s3.enable }}"
GCS_ENABLE: "{{ $.Values.mirror.gcs.enable }}"
SIG_REQUIRE: "{{ $.Values.mirror.sig.require }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ spec:
mountPath: /opt/hgcapp/
envFrom:
- configMapRef:
name: record-stream-sidecar-config
name: record-stream-uploader-config
- secretRef:
name: uploader-secrets
{{- end }}
Expand Down
2 changes: 2 additions & 0 deletions charts/hedera-network/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ mirror:
csvStatsDir: /opt/hgcapp/recordstream/uploader-stats/
bucketPath: /recordstream
bucketName: "dev"
compression: true
sidecar: true
recordStreamSideCar:
watchDir: /opt/hgcapp/sidecar
bucketPath: /recordstreamsidecar
Expand Down

0 comments on commit eb52514

Please sign in to comment.