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 30, 2024
1 parent 63c6220 commit 3fb416b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 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,10 @@ 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
values_dict.setdefault("fluent-bit", {})["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 3fb416b

Please sign in to comment.