From a7061e64cb2749416788b1e36ed2510fc7a1d536 Mon Sep 17 00:00:00 2001 From: DK Date: Sat, 11 Nov 2023 09:35:24 -0800 Subject: [PATCH] relayer+appgateserver --- Tiltfile | 21 ++++++++++++++++++- localnet/kubernetes/values-appgateserver.yaml | 2 ++ localnet/kubernetes/values-relayer.yaml | 2 ++ 3 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 localnet/kubernetes/values-appgateserver.yaml create mode 100644 localnet/kubernetes/values-relayer.yaml diff --git a/Tiltfile b/Tiltfile index 1333a406e..62684867d 100644 --- a/Tiltfile +++ b/Tiltfile @@ -2,13 +2,14 @@ load("ext://restart_process", "docker_build_with_restart") load("ext://helm_resource", "helm_resource", "helm_repo") # A list of directories where changes trigger a hot-reload of the sequencer -hot_reload_dirs = ["app", "cmd", "tools", "x"] +hot_reload_dirs = ["app", "cmd", "tools", "x", "pkg"] # Create a localnet config file from defaults, and if a default configuration doesn't exist, populate it with default values localnet_config_path = "localnet_config.yaml" localnet_config_defaults = { "relayers": {"count": 1}, "gateways": {"count": 1}, + "appgateservers": {"count": 1}, # By default, we use the `helm_repo` function below to point to the remote repository # but can update it to the locally cloned repo for testing & development "helm_chart_local_repo": {"enabled": False, "path": "../helm-charts"}, @@ -127,11 +128,23 @@ helm_resource( poktroll_chart, flags=[ "--values=./localnet/kubernetes/values-common.yaml", + "--values=./localnet/kubernetes/values-relayer.yaml", "--set=replicaCount=" + str(localnet_config["relayers"]["count"]), ], image_deps=["poktrolld"], image_keys=[("image.repository", "image.tag")], ) +helm_resource( + "appgateservers", + poktroll_chart, + flags=[ + "--values=./localnet/kubernetes/values-common.yaml", + "--values=./localnet/kubernetes/values-appgateserver.yaml", + "--set=replicaCount=" + str(localnet_config["appgateservers"]["count"]), + ], + image_deps=["poktrolld"], + image_keys=[("image.repository", "image.tag")], +) # Configure tilt resources (tilt labels and port forwards) for all of the nodes above k8s_resource( @@ -151,4 +164,10 @@ k8s_resource( resource_deps=["sequencer"], port_forwards=["8545", "8546", "40005"], ) +k8s_resource( + "appgateservers", + labels=["blockchains"], + resource_deps=["sequencer"], + port_forwards=["42069", "40006"], +) k8s_resource("anvil", labels=["blockchains"], port_forwards=["8547"]) diff --git a/localnet/kubernetes/values-appgateserver.yaml b/localnet/kubernetes/values-appgateserver.yaml new file mode 100644 index 000000000..85b34fd1d --- /dev/null +++ b/localnet/kubernetes/values-appgateserver.yaml @@ -0,0 +1,2 @@ +appgateserver: + enable: true \ No newline at end of file diff --git a/localnet/kubernetes/values-relayer.yaml b/localnet/kubernetes/values-relayer.yaml new file mode 100644 index 000000000..74f6fdb5f --- /dev/null +++ b/localnet/kubernetes/values-relayer.yaml @@ -0,0 +1,2 @@ +relayer: + enable: true \ No newline at end of file