File tree Expand file tree Collapse file tree 2 files changed +11
-12
lines changed
generate_kubernetes_config/defaults Expand file tree Collapse file tree 2 files changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -12,16 +12,15 @@ add_jump() {
1212 iptables -t " $table " -C " $from " -j " $to " 2> /dev/null || iptables -t " $table " -I " $from " " $pos " -j " $to "
1313}
1414
15- # Reuse Chaos Mesh chains if they exist
16- has_chain () { iptables -t filter -nL " $1 " > /dev/null 2>&1 ; }
15+ ensure_chain () {
16+ local table=" $1 " chain=" $2 "
17+ iptables -t " $table " -nL " $chain " > /dev/null 2>&1 || iptables -t " $table " -N " $chain "
18+ }
1719
18- # 1) Container egress: DOCKER-USER -> CHAOS-OUTPUT
19- if has_chain CHAOS-OUTPUT; then
20- add_jump filter DOCKER-USER CHAOS-OUTPUT 1
21- fi
20+ # 1) Ensure CHAOS chains exist
21+ ensure_chain filter CHAOS-OUTPUT
22+ ensure_chain filter CHAOS-INPUT
2223
23- # 2) Container ingress prep: DOCKER-USER -> CHAOS-INPUT
24- # (This lets CHAOS-INPUT rules, when present, also run for FORWARDed traffic to containers.)
25- if has_chain CHAOS-INPUT; then
26- add_jump filter DOCKER-USER CHAOS-INPUT 1
27- fi
24+ # 2) Add jumps from DOCKER-USER to CHAOS chains if not present
25+ add_jump filter DOCKER-USER CHAOS-OUTPUT 1
26+ add_jump filter DOCKER-USER CHAOS-INPUT 1
Original file line number Diff line number Diff line change @@ -189,7 +189,7 @@ gen_kubernetes_config_helm_charts: # noqa var-naming[no-role-prefix]
189189 dependencies :
190190 - name : chaos-mesh
191191 repository : https://ethpandaops.github.io/ethereum-helm-charts
192- version : 0.0.4
192+ version : 0.0.3
193193 syncoor-server :
194194 valuesTemplatePath : templates/syncoor-server.yaml.j2
195195 dependencies :
You can’t perform that action at this time.
0 commit comments