Skip to content

Commit

Permalink
fixup! feat: adapt to rollups-node:1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
endersonmaia committed Dec 4, 2023
1 parent 8326e38 commit 260f792
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
30 changes: 30 additions & 0 deletions charts/rollups-node/ci/test-values.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,20 @@ global:
tag: 1.2.0-rc.3

extraDeploy:
- apiVersion: v1
kind: ConfigMap
metadata:
namespace: "{{ .Release.Namespace }}"
name: "{{ .Release.Name }}-sepolia-deployment"
data:
"sepolia.json": |
{
"contracts": {
"Authority": { "address": "0x5827Ec9365D3a9b27bF1dB982d258Ad234D37242" },
"History": { "address": "0x76f4dCaC0920826541EE718214EEE4be07346cEE" },
"InputBox": { "address": "0x59b22D57D4f067708AB0c00552767405926dc768" }
}
}
- apiVersion: v1
kind: ConfigMap
metadata:
Expand Down Expand Up @@ -74,8 +88,24 @@ dispatcher:
extraEnvVarsCM: "{{ .Release.Name }}-dispatcher"
healthCheck:
enabled: true
extraVolumes:
- name: sepolia-deployment
configMap:
name: "{{ .Release.Name }}-sepolia-deployment"
extraVolumeMounts:
- name: sepolia-deployment
mountPath: /opt/cartesi/share/deployments
readOnly: true
authorityClaimer:
extraEnvVarsCM: "{{ .Release.Name }}-authority-claimer"
extraVolumes:
- name: sepolia-deployment
configMap:
name: "{{ .Release.Name }}-sepolia-deployment"
extraVolumeMounts:
- name: sepolia-deployment
mountPath: /opt/cartesi/share/deployments
readOnly: true
stateServer:
extraEnvVarsCM: "{{ .Release.Name }}-state-server"
serverManager:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ spec:
- --rollups-deployment-file=/opt/cartesi/share/deployments/localhost.json
- --dapp-deployment-file=/deployments/localhost/dapp.json
{{- else }}
- {{ print "--rollups-deployment-file=/opt/cartesi/share/deployments/" (required "A valid .Values.dapp.network is required" .Values.dapp.network | replace "-" "_") ".json" | quote }}
- {{ print "--dapp-address=" (required "A valid .Values.dapp.contractAddress is required" .Values.dapp.contractAddress) | quote }}
- {{ print "--dapp-deploy-block-hash=" (required "A valid .Values.dapp.blockHash is required" .Values.dapp.blockHash) | quote }}
{{- end }}
Expand Down
2 changes: 0 additions & 2 deletions charts/rollups-node/templates/dispatcher-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ spec:
- --rollups-deployment-file=/opt/cartesi/share/deployments/localhost.json
- --dapp-deployment-file=/deployments/localhost/dapp.json
{{- else }}
- {{ print "--rollups-deployment-file=/opt/cartesi/share/deployments/" (required "A valid .Values.dapp.network is required" .Values.dapp.network | replace "-" "_") ".json" | quote }}
- {{ print "--dapp-address=" (required "A valid .Values.dapp.contractAddress is required" .Values.dapp.contractAddress) | quote }}
- {{ print "--dapp-deploy-block-hash=" (required "A valid .Values.dapp.blockHash is required" .Values.dapp.blockHash) | quote }}
{{- end }}
Expand All @@ -64,7 +63,6 @@ spec:
{{- end }}
- {{ print (include "validator.redisConfig" .) | quote }}
{{- range .Values.dispatcher.args }}
- {{ . | quote}}
{{- end }}
{{- range .Values.dispatcher.extraArgs }}
- {{ . | quote}}
Expand Down

0 comments on commit 260f792

Please sign in to comment.