Skip to content

Commit

Permalink
Repair sqnc-node test defaults (#729)
Browse files Browse the repository at this point in the history
  • Loading branch information
elisehaldane authored Mar 4, 2025
1 parent 2782c26 commit c4b3250
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/sqnc-node/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ maintainers:
url: www.digicatapult.org.uk
description: A Helm chart to deploy SQNC nodes
type: application
version: 7.1.2
version: 7.1.3
# renovate: image=digicatapult/sqnc-node
appVersion: '11.3.0'
15 changes: 10 additions & 5 deletions charts/sqnc-node/templates/tests/checkPostDeployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
{{ $serviceLabels := include "sqnc-node.serviceLabels" . }}
{{ $selectorLabels := include "sqnc-node.selectorLabels" . }}

{{- $blockHeight := $.Values.tests.blockHeight | default dict }}
{{- $nodeConnection := $.Values.tests.nodeConnection | default dict }}

{{- $osShell := $.Values.tests.osShell.image }}

{{range $i := until ($.Values.node.replicas | int) }}
apiVersion: v1
kind: Pod
Expand All @@ -14,7 +19,7 @@ metadata:
spec:
containers:
- name: block-height-check
image: {{ $.Values.tests.osShell.image.repository }}:{{ $.Values.tests.osShell.image.tag }}
image: {{ $osShell.repository }}:{{ $osShell.tag }}
command: [ "/bin/sh" ]
args:
- -c
Expand All @@ -34,9 +39,9 @@ spec:
fi
env:
- name: BLOCK_HEIGHT_WAIT
value: {{ default 30 $.Values.tests.blockHeight.waitSeconds | quote }}
value: {{ default 30 $blockHeight.waitSeconds | quote }}
- name: node-connection-check
image: {{ $.Values.tests.osShell.image.repository }}:{{ $.Values.tests.osShell.image.tag }}
image: {{ $osShell.repository }}:{{ $osShell.tag }}
command: [ "/bin/sh" ]
args:
- -c
Expand Down Expand Up @@ -68,14 +73,14 @@ spec:
fi
env:
- name: NODE_CONNECTION_WAIT
value: {{ default 30 $.Values.tests.nodeConnection.waitSeconds | quote }}
value: {{ default 30 $nodeConnection.waitSeconds | quote }}
- name: CHAIN_TYPE
value: {{ $.Values.node.chain }}
- name: MIN_PEER_COUNT
{{- if eq $.Values.node.chain "dev" }}
value: {{ 0 | quote }}
{{- else }}
value: {{ default 2 $.Values.tests.minPeerCount | quote }}
value: {{ default 2 $nodeConnection.minPeerCount | quote }}
{{- end }}
restartPolicy: Never
{{ end }}

0 comments on commit c4b3250

Please sign in to comment.