Skip to content

Commit f4bcf16

Browse files
authored
Remove disableCloudRouting (#12)
1 parent c4aec74 commit f4bcf16

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

robusta_cli/eula.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
from robusta_cli.backend_profile import backend_profile
55

66

7-
def handle_eula(account_id, robusta_api_key, cloud_routing_enabled):
8-
require_eula = robusta_api_key or cloud_routing_enabled
7+
def handle_eula(account_id, robusta_api_key):
8+
require_eula = robusta_api_key
99
if not require_eula:
1010
return
1111

robusta_cli/main.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ class HelmValues(BaseModel, extra=Extra.allow):
7676
clusterName: Optional[str] = None
7777
isSmallCluster: Optional[bool] = None
7878
enablePrometheusStack: bool = False
79-
disableCloudRouting: bool = False
8079
enablePlatformPlaybooks: bool = False
8180
enabledManagedConfiguration: bool = False
8281
playbooksPersistentVolumeSize: str = None
@@ -131,7 +130,6 @@ def gen_config(
131130
),
132131
robusta_api_key: str = typer.Option(None),
133132
enable_prometheus_stack: bool = typer.Option(None),
134-
disable_cloud_routing: bool = typer.Option(None),
135133
output_path: str = typer.Option("./generated_values.yaml", help="Output path of generated Helm values"),
136134
debug: bool = typer.Option(False),
137135
context: str = typer.Option(
@@ -218,7 +216,6 @@ def gen_config(
218216
RobustaSinkConfigWrapper(robusta_sink=RobustaSinkParams(name="robusta_ui_sink", token=robusta_api_key))
219217
] + sinks_config
220218
enable_platform_playbooks = True
221-
disable_cloud_routing = False
222219

223220
slack_feedback_heads_up_message: Optional[str] = None
224221
# When using custom certificates we do not want to add the extra slack message.
@@ -240,12 +237,7 @@ def gen_config(
240237
f"""If you haven't installed it yet, Robusta can install a pre-configured {typer.style("Prometheus", fg=typer.colors.YELLOW, bold=True)}.\nWould you like to do so?"""
241238
)
242239

243-
if disable_cloud_routing is None:
244-
disable_cloud_routing = not typer.confirm(
245-
"Would you like to enable two-way interactivity (e.g. fix-it buttons in Slack) via Robusta's cloud?"
246-
)
247-
248-
handle_eula(account_id, robusta_api_key, not disable_cloud_routing)
240+
handle_eula(account_id, robusta_api_key)
249241

250242
if enable_crash_report is None:
251243
enable_crash_report = typer.confirm(
@@ -260,7 +252,6 @@ def gen_config(
260252
globalConfig=GlobalConfig(signing_key=signing_key, account_id=account_id),
261253
sinksConfig=sinks_config,
262254
enablePrometheusStack=enable_prometheus_stack,
263-
disableCloudRouting=disable_cloud_routing,
264255
enablePlatformPlaybooks=enable_platform_playbooks,
265256
enabledManagedConfiguration=True if robusta_api_key else False,
266257
)

0 commit comments

Comments
 (0)