Skip to content

Commit 2355e94

Browse files
feat(deps): update arbitrum dependencies (#514)
| datasource | package | from | to | | ---------- | ----------------------- | -------------- | -------------- | | docker | offchainlabs/nitro-node | v3.5.3-0a9c975 | v3.5.4-217e414 | --------- Co-authored-by: graphops-renovate[bot] <135047802+graphops-renovate[bot]@users.noreply.github.com> Co-authored-by: Carlos Jorge <carlos@graphops.xyz>
1 parent 89cc7ce commit 2355e94

File tree

6 files changed

+44
-8
lines changed

6 files changed

+44
-8
lines changed

charts/arbitrum-nitro/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.6.1
18+
version: 0.6.2
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to
2222
# follow Semantic Versioning. They should reflect the version the application is using.
2323
# It is recommended to use it with quotes.
2424
# renovate: image=offchainlabs/nitro-node
25-
appVersion: "v3.5.3-0a9c975"
25+
appVersion: "v3.5.4-217e414"

charts/arbitrum-nitro/README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Deploy and scale [Arbitrum-Nitro](https://github.com/OffchainLabs/nitro/) inside Kubernetes with ease
44

5-
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) ![Version: 0.6.1](https://img.shields.io/badge/Version-0.6.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v3.5.3-0a9c975](https://img.shields.io/badge/AppVersion-v3.5.3--0a9c975-informational?style=flat-square)
5+
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) ![Version: 0.6.2](https://img.shields.io/badge/Version-0.6.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v3.5.4-217e414](https://img.shields.io/badge/AppVersion-v3.5.4--217e414-informational?style=flat-square)
66

77
## Features
88

@@ -94,8 +94,9 @@ We do not recommend that you upgrade the application by overriding `image.tag`.
9494
| nameOverride | | string | `""` |
9595
| nitro.affinity | | object | `{}` |
9696
| nitro.affinityPresets.antiAffinityByHostname | Configure anti-affinity rules to prevent multiple arbitrum instances on the same host | bool | `true` |
97-
| nitro.config | Nitro configuration parameters | object | `{"chain":42161,"classicUrl":null,"defaultArgs":["--execution.caching.archive"],"extraArgs":[],"httpRpc":{"addr":"0.0.0.0","api":"net,web3,eth,debug","cors":"*","vhosts":"*"},"metrics":{"addr":"0.0.0.0","enabled":true},"parentChainBeaconUrl":"CHANGE_ME_BEACON_URL","parentChainUrl":"CHANGE_ME_RPC_URL"}` |
97+
| nitro.config | Nitro configuration parameters | object | `{"chain":42161,"chainInfo":false,"chainInfoJson":"","classicUrl":null,"defaultArgs":["--execution.caching.archive"],"extraArgs":[],"httpRpc":{"addr":"0.0.0.0","api":"net,web3,eth,debug","cors":"*","vhosts":"*"},"metrics":{"addr":"0.0.0.0","enabled":true},"parentChainBeaconUrl":null,"parentChainUrl":null}` |
9898
| nitro.config.chain | Chain ID, 42161 for Arbitrum One | int | `42161` |
99+
| nitro.config.chainInfo | enable a configmap mount for a chain-info.json file, useful for L3 Orbit chains | bool | `false` |
99100
| nitro.config.classicUrl | RPC Url to Arbitrum Classic Archive node if serving classic blocks | string | `nil` |
100101
| nitro.config.defaultArgs | Enabled default arguments on the chart | list | `["--execution.caching.archive"]` |
101102
| nitro.config.extraArgs | Additional CLI arguments to pass to `nitro` | list | `[]` |
@@ -107,8 +108,8 @@ We do not recommend that you upgrade the application by overriding `image.tag`.
107108
| nitro.config.metrics | Metrics parameters | object | `{"addr":"0.0.0.0","enabled":true}` |
108109
| nitro.config.metrics.addr | Listen address | string | `"0.0.0.0"` |
109110
| nitro.config.metrics.enabled | Enable metrics | bool | `true` |
110-
| nitro.config.parentChainBeaconUrl | Beacon URL to L1 chain (ethereum) | string | `"CHANGE_ME_BEACON_URL"` |
111-
| nitro.config.parentChainUrl | RPC URL to L1 chain (ethereum) | string | `"CHANGE_ME_RPC_URL"` |
111+
| nitro.config.parentChainBeaconUrl | Beacon URL to L1 chain (ethereum) | string | `nil` |
112+
| nitro.config.parentChainUrl | RPC URL to L1 chain (ethereum) | string | `nil` |
112113
| nitro.extraLabels | Extra labels to attach to the Pod for matching against | object | `{}` |
113114
| nitro.nodeSelector | | object | `{}` |
114115
| nitro.podAnnotations | Annotations for the `Pod` | object | `{}` |

charts/arbitrum-nitro/templates/_helpers.tpl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,12 @@ Generate the array of options for nitro
7979
"--validation.wasm.allowed-wasm-module-roots=/home/user/nitro-legacy/machines,/home/user/target/machines"
8080
}}
8181
{{- with .config }}
82+
{{- if not (empty .parentChainUrl) -}}
8283
{{- $args = concat $args (list (print "--parent-chain.connection.url=" .parentChainUrl)) }}
84+
{{- end }}
85+
{{- if not (empty .parentChainBeaconUrl) -}}
8386
{{- $args = concat $args (list (print "--parent-chain.blob-client.beacon-url=" .parentChainBeaconUrl)) }}
87+
{{- end }}
8488
{{- $args = concat $args (list (print "--chain.id=" .chain)) }}
8589
{{- $args = concat $args (list (print "--http.api=" .httpRpc.api)) }}
8690
{{- $args = concat $args (list (print "--http.addr=" .httpRpc.addr)) }}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{{- if $.Values.nitro.config.chainInfo }}
2+
apiVersion: v1
3+
kind: ConfigMap
4+
metadata:
5+
name: {{ include "arbitrum-nitro.fullname" . }}-config
6+
labels:
7+
{{- include "arbitrum-nitro.labels" . | nindent 4 }}
8+
data:
9+
chain-info.json: |
10+
{{ $.Values.nitro.config.chainInfoJson }}
11+
{{- end }}

charts/arbitrum-nitro/templates/arbitrum-nitro/statefulset.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@ spec:
4848
volumes:
4949
- name: tmp # this is to provide a writable /tmp even with securityContext.readOnlyRootFilesystem=true
5050
emptyDir: {}
51+
{{- if $values.config.chainInfo }}
52+
- name: chain-info
53+
configMap:
54+
name: {{ include "arbitrum-nitro.fullname" . }}-config
55+
items:
56+
- key: chain-info.json # Key from the ConfigMap
57+
path: chain-info.json
58+
{{- end }}
5159
initContainers:
5260
{{- if $values.restoreSnapshot.enabled }}
5361
- name: init-snapshot
@@ -116,6 +124,9 @@ spec:
116124
- |
117125
set -ex;
118126
exec nitro \
127+
{{- if $values.config.chainInfo }}
128+
--chain.info-files /storage/chain-info.json \
129+
{{- end }}
119130
{{- range $val := initial $nitroArgs }}
120131
{{ $val }} \
121132
{{- end }}
@@ -135,6 +146,12 @@ spec:
135146
mountPath: /storage
136147
- name: tmp
137148
mountPath: /tmp
149+
{{- if $values.config.chainInfo }}
150+
- name: chain-info
151+
mountPath: "/storage/chain-info.json"
152+
subPath: "chain-info.json"
153+
readOnly: true
154+
{{- end }}
138155
readinessProbe:
139156
httpGet:
140157
port: {{ index $values.service.ports "http-rpc" }}

charts/arbitrum-nitro/values.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,13 @@ nitro:
7373
config:
7474
# -- Chain ID, 42161 for Arbitrum One
7575
chain: 42161
76+
# -- enable a configmap mount for a chain-info.json file, useful for L3 Orbit chains
77+
chainInfo: false
78+
chainInfoJson: ""
7679
# -- RPC URL to L1 chain (ethereum)
77-
parentChainUrl: "CHANGE_ME_RPC_URL"
80+
parentChainUrl: null
7881
# -- Beacon URL to L1 chain (ethereum)
79-
parentChainBeaconUrl: "CHANGE_ME_BEACON_URL"
82+
parentChainBeaconUrl: null
8083
# -- RPC Url to Arbitrum Classic Archive node if serving classic blocks
8184
classicUrl: null
8285
# -- RPC config parameters

0 commit comments

Comments
 (0)