File tree Expand file tree Collapse file tree 3 files changed +8
-13
lines changed
Expand file tree Collapse file tree 3 files changed +8
-13
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ apiVersion: v2
22name : horcrux
33description : A production-grade Helm chart for deploying Horcrux remote signer for Cosmos chains
44type : application
5- version : 1.0.5
5+ version : 1.0.6
66appVersion : " v3.3.2"
77keywords :
88 - cosmos
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
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+
You can’t perform that action at this time.
0 commit comments