Open ytimocin opened 12 months ago
Thanks for the find!
~/.rad/config.yaml
from a previous Radius installation which had designated "default" as the default environment.rad env switch
)To address numbers 1 and 4, we can do two things:
rad env delete
to first check if the environment exists before prompting the user. If it does not exist provide the existing error of "specify -e/--environment or set a default environment via 'rad env switch'"@AaronCrawfis @ytimocin - If this is still relevant, I'd like to address this issue. I'll assign myself now, and let you know how I get on.
/assign
Bug information
Steps to reproduce (required)
First Scenario:
rad install kubernetes
is not run and this is a fresh Radius installation.rad env list
and see that there is no environment.rad env delete
and see that the CLI tries to delete the default environment.Second Scenario: When we have a default environment,
rad env delete
tries to delete the default environment.rad init
and initialize a default environment.rad env delete
and see that the CLI tries to delete the default environment.Third Scenario: When we have multiple environments,
rad env delete
tries to delete the default environment.rad env create env-name
).rad env delete
and see that the CLI tries to delete the default environment.Fourth Scenario: When we delete default environment and run
rad env delete
, it still tries to delete the default environment.rad env delete -e default
.rad env delete
and see that the CLI tries to delete the default environment.Observed behavior (required)
rad env delete
defaults to deleting the default environment.Desired behavior (required)
rad env delete
should ask for an environment name.Workaround (optional)
System information
rad Version (required)
RELEASE VERSION BICEP COMMIT 0.26.7 v0.26.7 0.11.90 fa562cea0b123ec2b1531112e67f758526bbba19
Operating system (required)
MacOS Sonoma 14.0 Apple Chip
Additional context
After we run
rad init
, which means we have a default environment,rad env delete
defaults to the default environment.No Radius installation so no default environment,
rad env delete
defaults to the default environment.No Radius installation so no default environment,
rad env delete
defaults to the default environment.AB#9903