File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ def _get_signing_key_from_env_variable(namespace: Optional[str], env_var_name: s
8686 return str (exec_in_robusta_runner_output (f'echo "${ env_var_name } "' , namespace ), "utf-8" ).strip ()
8787
8888
89- @app .command (name = "web-connect" )
89+ @app .command (name = "web-connect" ) # TODO consider removing this
9090@app .command ()
9191def gen_token (
9292 account_id : str = typer .Option (
Original file line number Diff line number Diff line change @@ -301,38 +301,6 @@ def gen_config(
301301 typer .secho (slack_feedback_heads_up_message )
302302
303303
304- @app .command ()
305- def update_config (
306- existing_values : str = typer .Option (
307- ...,
308- help = "Existing values.yaml file name. You can run `helm get values` to get it from the cluster." ,
309- ),
310- ):
311- """
312- Update an existing values.yaml file.
313- Add RSA key-pair if it doesn't exist
314- Add a signing key if it doesn't exist, or replace with a valid one if the key has an invalid format
315- """
316- with open (existing_values , "r" ) as existing_values_file :
317- values : HelmValues = HelmValues (** yaml .safe_load (existing_values_file ))
318-
319- if not values .globalConfig .signing_key :
320- typer .secho ("Generating signing key" , fg = "green" )
321- values .globalConfig .signing_key = str (uuid .uuid4 ())
322-
323- try :
324- uuid .UUID (values .globalConfig .signing_key )
325- except ValueError :
326- typer .secho ("Invalid signing key. Generating a new one" , fg = "green" )
327- values .globalConfig .signing_key = str (uuid .uuid4 ())
328-
329- write_values_file ("updated_values.yaml" , values )
330- typer .secho (
331- "Run `helm upgrade robusta robusta/robusta -f ./updated_values.yaml`" ,
332- fg = "green" ,
333- )
334-
335-
336304@app .command ()
337305def version ():
338306 """Show the version of the local robusta-cli"""
You can’t perform that action at this time.
0 commit comments