Skip to content

Commit

Permalink
feat(reana_dev): add --live-logs flag (reanahub#827)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlemesh committed Aug 28, 2024
1 parent ea1fb45 commit a526d7d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions reana/reana_dev/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ def cluster_build(
default="reana",
help="REANA instance name",
)
@click.option("--live-logs", is_flag=True, help="Enable live job logs.")
def cluster_deploy(
namespace,
job_mounts,
Expand All @@ -303,6 +304,7 @@ def cluster_deploy(
admin_email,
admin_password,
instance_name,
live_logs,
): # noqa: D301
"""Deploy REANA cluster.
Expand Down Expand Up @@ -349,6 +351,9 @@ def job_mounts_to_config(job_mounts):
if mode in ("debug"):
values_dict.setdefault("debug", {})["enabled"] = True

if live_logs:
values_dict.setdefault("opensearch", {})["enabled"] = True

if exclude_components:
standard_named_exclude_components = [
find_standard_component_name(c) for c in exclude_components.split(",")
Expand Down

0 comments on commit a526d7d

Please sign in to comment.