Skip to content

Commit c6b946f

Browse files
authored
Merge pull request #415 from celo-org/op-node-netrestric
OP Node netrestric
2 parents ee4b5d3 + 279a8f0 commit c6b946f

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

charts/op-node/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: op-node
33
apiVersion: v2
4-
version: 0.4.3
4+
version: 0.4.4
55
description: Celo implementation for op-node consensus engine (Optimism Rollup)
66
home: https://clabs.co
77
sources:

charts/op-node/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# op-node
22

3-
![Version: 0.4.3](https://img.shields.io/badge/Version-0.4.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v1.0.0](https://img.shields.io/badge/AppVersion-v1.0.0-informational?style=flat-square)
3+
![Version: 0.4.4](https://img.shields.io/badge/Version-0.4.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v1.0.0](https://img.shields.io/badge/AppVersion-v1.0.0-informational?style=flat-square)
44

55
Celo implementation for op-node consensus engine (Optimism Rollup)
66
Initially based on [dysnix/charts/op-node](https://github.com/dysnix/charts/tree/main/dysnix/op-node).
@@ -49,6 +49,7 @@ Initially based on [dysnix/charts/op-node](https://github.com/dysnix/charts/tree
4949
| config.p2p.bootnodes | list | `[]` | |
5050
| config.p2p.keys | string | `""` | |
5151
| config.p2p.nat | bool | `false` | |
52+
| config.p2p.netrestrict | list | `[]` | |
5253
| config.p2p.noDiscovery | bool | `false` | |
5354
| config.p2p.port | int | `9222` | |
5455
| config.p2p.sequencer.key | string | `""` | |

charts/op-node/templates/statefulset.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,9 @@ spec:
194194
{{- if .Values.config.p2p.noDiscovery }}
195195
--p2p.no-discovery \
196196
{{- end }}
197+
{{- with .Values.config.p2p.netrestrict }}
198+
--netrestrict={{ join "," . }} \
199+
{{- end }}
197200
--p2p.priv.path=$datadir/opnode_p2p_priv.txt \
198201
--log.level={{ .Values.config.logLevel }} \
199202
{{- with .Values.config.syncmode }}

charts/op-node/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ config:
261261
useHostPort: false # use hostPort for p2p traffic instead of dedicated k8s svc
262262
bootnodes: [] # override bootnodes
263263
static: [] # static peers
264+
netrestrict: [] # restrict network access to specific IPs
264265
noDiscovery: false # disable peer discovery
265266
keys: "" # comma separated list of keys to use for p2p
266267
sequencer:

0 commit comments

Comments
 (0)