@@ -335,6 +335,8 @@ open_obol_agent_interface() {
335335 log_info " Opening obol-agent interface at http://localhost:8000..."
336336 kubectl port-forward svc/obol-agent 8000:8000 > /dev/null 2>&1 &
337337 xdg-open " http://localhost:8000" 2> /dev/null || open " http://localhost:8000" 2> /dev/null || log_warn " Could not open browser automatically."
338+ }
339+
338340# Check if cluster has required port mappings for host mode
339341check_cluster_port_mappings () {
340342 local cluster_name=" $1 "
@@ -349,9 +351,9 @@ check_cluster_port_mappings() {
349351
350352# Launch or update the Obol Stack
351353launch_stack () {
352- declare -n __network=" $1 "
353- declare -n __mode=" $2 "
354- declare -n __host=" $3 "
354+ local __network=" $1 "
355+ local __mode=" $2 "
356+ local __host=" $3 "
355357
356358 log_info " Launching core Obol Stack services..."
357359 if ! kind get clusters | grep -q " $STACK_NAME " ; then
@@ -397,17 +399,13 @@ launch_stack() {
397399 # Deploy a Helm Release named "kubernetes-dashboard" using the kubernetes-dashboard chart
398400 # helm upgrade --install kubernetes-dashboard kubernetes-dashboard/kubernetes-dashboard --create-namespace --namespace kubernetes-dashboard
399401
400- log_info " Installing the Obol Stack Ethereum light client configured for $network ..."
401- ensure helm upgrade --namespace l1 --create-namespace --hide-notes --force --install l1-light-client obol/helios -f ../values/$network /helios.yaml
402+ log_info " Installing the Obol Stack Ethereum light client configured for $__network ..."
403+ ensure helm upgrade --namespace l1 --create-namespace --hide-notes --force --install l1-light-client obol/helios -f ../values/$__network /helios.yaml
402404
403405 # If mode="full", also sync an Erigon full node
404- <<< <<< < HEAD
405- if [[ " $mode " = " full" ]]; then
406- =======
407406 if [[ " $__mode " = " full" ]]; then
408- >>>>>>> main
409407 log_info " Installing an Ethereum Erigon full node client..."
410- ensure helm upgrade --namespace l1 --create-namespace --install l1-erigon ethereum/erigon -f ../values/mainnet/erigon.yaml -f ../values/$network /erigon.yaml
408+ ensure helm upgrade --namespace l1 --create-namespace --install l1-erigon ethereum/erigon -f ../values/mainnet/erigon.yaml -f ../values/$__network /erigon.yaml
411409 fi
412410
413411 log_info " Installing the Obol Stack Ethereum eRPC load balancer..."
@@ -524,11 +522,7 @@ main() {
524522 kind delete cluster --name " $STACK_NAME "
525523 fi
526524
527- <<< <<< < HEAD
528- launch_stack " $network " " $mode "
529- =======
530- launch_stack network mode host
531- >>>>>>> main
525+ launch_stack " $network " " $mode " " $host "
532526
533527 log_info " Obol Stack is up and running!"
534528 exit 0
0 commit comments