Skip to content

Commit 70df087

Browse files
committed
ingress: deploy only if caddy is enabled
1 parent e9bbbd0 commit 70df087

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/warnet/deploy.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,8 @@ def deploy_ingress(directory: Path, debug: bool):
311311
network_file_path = directory / NETWORK_FILE
312312
with network_file_path.open() as f:
313313
network_file = yaml.safe_load(f)
314-
fo_enabled = network_file.get("fork_observer", {}).get("enabled", False)
315-
logging_enabled = check_logging_required(directory)
316-
if not (fo_enabled or logging_enabled):
314+
# Only start if caddy is enabled in the network file
315+
if not network_file.get("caddy", {}).get("enabled", False):
317316
return
318317
click.echo("Deploying ingress controller")
319318

0 commit comments

Comments
 (0)