Skip to content

Commit

Permalink
Adding spec.ordinal.start usage back to configmap_builder.go
Browse files Browse the repository at this point in the history
  • Loading branch information
vimystic committed Nov 20, 2024
1 parent a8cc9e0 commit be87c7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/fullnode/configmap_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func BuildConfigMaps(crd *cosmosv1.CosmosFullNode, peers Peers) ([]diff.Resource
defer bufPool.Put(buf)
defer buf.Reset()

for i := int32(0); i < crd.Spec.Replicas; i++ {
for i := crd.Spec.Ordinal.Start; i < crd.Spec.Ordinal.Start+crd.Spec.Replicas; i++ {
data := make(map[string]string)
instance := instanceName(crd, i)
if err := addConfigToml(buf, data, crd, instance, peers); err != nil {
Expand Down

0 comments on commit be87c7d

Please sign in to comment.