Skip to content

Commit

Permalink
Merge pull request #12 from chainflip-io/fix/warp
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjohnburton authored Aug 23, 2023
2 parents 6dffcf2 + 2b0a415 commit ea04784
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- name: Test charts
run: |
helm unittest ./charts/*
helm unittest ./charts/*
check_version:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion charts/node/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ maintainers:

type: application

version: 0.1.10
version: 0.1.11

appVersion: "0.9.0"
5 changes: 3 additions & 2 deletions charts/node/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,11 @@ chainflip.io/name: {{ .Release.Name }}
Chain name
*/}}
{{- define "chainflip-node.chain" -}}
{{- $chain := .Values.network.chain.name | required ".Values.network.chain.name is required." -}}
{{- if .Values.network.chain.chainspecUrl }}
{{- printf "%s/%s.chainspec.json" .Values.common.basePath .Values.network.chain.name }}
{{- printf "%s/%s.chainspec.json" .Values.common.basePath $chain }}
{{- else -}}
{{- printf "%s" .Values.network.chain.name }}
{{- printf "%s" $chain }}
{{- end }}
{{- end }}

Expand Down
1 change: 0 additions & 1 deletion charts/node/templates/node-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ spec:
{{- if eq .Values.common.role "validator" }}
- --node-key-file={{ .Values.common.keys.keysPath }}/{{ .Values.common.keys.nodeKeyFileName }}
- --validator
- --sync=warp
{{- end }}
{{- if eq .Values.common.role "archive" }}
- --blocks-pruning=archive
Expand Down
2 changes: 1 addition & 1 deletion charts/node/tests/engine_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ tests:
of: StatefulSet
- equal:
path: spec.template.spec.containers[0].image
value: chainfliplabs/chainflip-engine:perseverance
value: chainfliplabs/chainflip-engine:test
- it: should not create a pvc if supplying an existing claim
set:
engine.persistence.existingClaim: "test"
Expand Down
2 changes: 1 addition & 1 deletion charts/node/tests/is_archive_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ tests:
of: StatefulSet
- equal:
path: spec.template.spec.containers[0].image
value: chainfliplabs/chainflip-node:perseverance
value: chainfliplabs/chainflip-node:test
- notExists:
path: spec.template.spec.containers[0].volumeMounts[1]
- it: should not create the engine template
Expand Down
2 changes: 1 addition & 1 deletion charts/node/tests/node_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ tests:
of: StatefulSet
- equal:
path: spec.template.spec.containers[0].image
value: chainfliplabs/chainflip-node:perseverance
value: chainfliplabs/chainflip-node:test
- it: should not create a pvc if supplying an existing claim
set:
node.persistence.existingClaim: "test"
Expand Down
3 changes: 3 additions & 0 deletions charts/node/tests/values/archive.values.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
network:
chain:
name: test
common:
role: "archive"
3 changes: 3 additions & 0 deletions charts/node/tests/values/happy.values.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
network:
chain:
name: test
engine:
settings:
node_p2p:
Expand Down
4 changes: 2 additions & 2 deletions charts/node/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ network:
# -- chain settings
chain:
# -- chain name; `perseverance`
name: "perseverance"
name: "test"

# -- download the chainspec from a URL
chainspecUrl: "https://s3.eu-central-1.amazonaws.com/repo.chainflip.io/chainspecs/perseverance.chainspec.json"
chainspecUrl: ""

# -- network bootnodes
bootnodes:
Expand Down

0 comments on commit ea04784

Please sign in to comment.