Skip to content

Commit d611ff3

Browse files
authored
fix
1 parent 33ac225 commit d611ff3

File tree

3 files changed

+8
-13
lines changed

3 files changed

+8
-13
lines changed

charts/horcrux/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: horcrux
33
description: A production-grade Helm chart for deploying Horcrux remote signer for Cosmos chains
44
type: application
5-
version: 1.0.5
5+
version: 1.0.6
66
appVersion: "v3.3.2"
77
keywords:
88
- cosmos

charts/horcrux/templates/_helpers.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ Generate cosigner configuration
118118
{{- $namespace := include "horcrux.namespace" . -}}
119119
{{- range $i := until (int .Values.replicaCount) }}
120120
- shardID: {{ add $i 1 }}
121-
p2pAddr: tcp://{{ $fullname }}-{{ $i }}:{{ $.Values.service.headless.p2pPort }}
121+
p2pAddr: tcp://{{ $fullname }}-{{ $i }}.{{ $serviceName }}.{{ $namespace }}.svc.cluster.local:{{ $.Values.service.headless.p2pPort }}
122122
{{- end }}
123123
{{- end }}
124124

charts/horcrux/templates/statefulset.yaml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,11 @@ spec:
5151
ORDINAL=${HOSTNAME##*-}
5252
SHARD_ID=$((ORDINAL + 1))
5353
echo "Initializing co-signer ${SHARD_ID}"
54-
54+
5555
# Copy shard files to emptyDir
5656
cp /horcrux/shards/shard-${SHARD_ID}/{{ .Values.chain.id }}_shard.json /shard-files/{{ .Values.chain.id }}_shard.json
5757
cp /horcrux/shards/shard-${SHARD_ID}/ecies_keys.json /shard-files/ecies_keys.json
58-
59-
# Copy config.yaml
60-
cp /config-template/config.yaml /shard-files/config.yaml
61-
58+
6259
# Initialize state if it doesn't exist
6360
if [ ! -f /horcrux/state/{{ .Values.chain.id }}_priv_validator_state.json ]; then
6461
echo "Initializing state from shard..."
@@ -67,10 +64,10 @@ spec:
6764
else
6865
echo "State already exists, skipping initialization"
6966
fi
70-
67+
7168
# Create raft directory
7269
mkdir -p /horcrux/raft
73-
70+
7471
echo "Initialization complete for shard ${SHARD_ID}"
7572
volumeMounts:
7673
- name: shards
@@ -82,9 +79,6 @@ spec:
8279
mountPath: /shard-files
8380
- name: raft
8481
mountPath: /horcrux/raft
85-
- name: config
86-
mountPath: /config-template
87-
readOnly: true
8882
{{- with .Values.securityContext }}
8983
securityContext:
9084
{{- toYaml . | nindent 10 }}
@@ -121,7 +115,7 @@ spec:
121115
volumeMounts:
122116
- name: horcrux-home
123117
mountPath: /horcrux
124-
- name: shard-files
118+
- name: config
125119
mountPath: /horcrux/config.yaml
126120
subPath: config.yaml
127121
- name: shard-files
@@ -227,3 +221,4 @@ spec:
227221
requests:
228222
storage: {{ .Values.persistence.size }}
229223
{{- end }}
224+

0 commit comments

Comments
 (0)