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 05fd148 commit 8326e38
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 41 deletions.
13 changes: 2 additions & 11 deletions charts/rollups-node/templates/authority-claimer-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ spec:
- --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-deployment-file=/deployments/" (required "A valid .Values.dapp.network is required" .Values.dapp.network | replace "-" "_") "/dapp.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 }}
{{- if (or .Values.dapp.mnemonic.value .Values.dapp.mnemonic.secretRef .Values.localnode.enabled) }}
- {{ print "--tx-signing-mnemonic-file=/var/run/secrets/mnemonic/MNEMONIC" | quote }}
Expand Down Expand Up @@ -115,10 +116,6 @@ spec:
- name: deployments
mountPath: /deployments
readOnly: false
{{- else }}
- name: dapp
mountPath: "/deployments/{{ .Values.dapp.network }}/"
readOnly: true
{{- end}}
{{- if .Values.authorityClaimer.extraVolumeMounts }}
{{- include "tplvalues.render" ( dict "value" .Values.authorityClaimer.extraVolumeMounts "context" $ ) | nindent 12 }}
Expand All @@ -135,12 +132,6 @@ spec:
{{- end }}
- name: authority-claimer-lib
emptyDir: {}
- name: dapp
configMap:
name: "{{ include "validator.fullname" . }}-dapp"
items:
- key: "dapp.json"
path: "dapp.json"
{{- if (or .Values.dapp.mnemonic.value .Values.localnode.enabled .Values.dapp.mnemonic.secretRef) }}
- name: mnemonic
secret:
Expand Down
19 changes: 0 additions & 19 deletions charts/rollups-node/templates/dapp-configmap.yaml

This file was deleted.

13 changes: 2 additions & 11 deletions charts/rollups-node/templates/dispatcher-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ spec:
- --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-deployment-file=/deployments/" (required "A valid .Values.dapp.network is required" .Values.dapp.network | replace "-" "_") "/dapp.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 }}
{{- if (or .Values.dapp.network .Values.localnode.enabled) }}
- {{ print "--chain-id=" (include "dapp.chainID" .) | quote }}
Expand Down Expand Up @@ -105,10 +106,6 @@ spec:
- name: deployments
mountPath: /deployments
readOnly: false
{{- else }}
- name: dapp
mountPath: "/deployments/{{ .Values.dapp.network }}/"
readOnly: true
{{- end}}
{{- if .Values.dispatcher.extraVolumeMounts }}
{{- include "tplvalues.render" ( dict "value" .Values.dispatcher.extraVolumeMounts "context" $ ) | nindent 12 }}
Expand All @@ -123,12 +120,6 @@ spec:
persistentVolumeClaim:
claimName: {{ include "validator.fullname" . }}-deployments-pvc
{{- end }}
- name: dapp
configMap:
name: "{{ include "validator.fullname" . }}-dapp"
items:
- key: "dapp.json"
path: "dapp.json"
{{- if (or .Values.dapp.mnemonic.value .Values.localnode.enabled .Values.dapp.mnemonic.secretRef) }}
- name: mnemonic
secret:
Expand Down

0 comments on commit 8326e38

Please sign in to comment.