-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rad init
should not expect workspaces to already be present
#3823
Comments
AaronCrawfis
changed the title
As a new Radius user, I am forced to run
Sep 26, 2022
rad install kubernetes
before I can run rad init
rad init
should not expect workspaces to already be present
5 tasks
bjoginapally
added a commit
that referenced
this issue
Oct 1, 2022
verified fix |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Proposed fix
rad init
should not expect a workspace to already be present on the user's machine. Instead, it should create a newconfig.yaml
if not already present, and then add a new entry for the new workspace.Specifically https://github.com/project-radius/radius/blob/main/pkg/cli/cmd/radInit/init.go#L92 is the current bug where we try to read in the config file.
Intended behavior
config.yaml
does not exist, create itrad init
will not update existing workspaces)Flow chart
Bug information
Steps to reproduce (required)
Pre-requisites:
rm -r ~/.rad/config.yaml ~/.rad/config.yaml.lock
Steps:
rad init
rad workspace init kubernetes -w sighting
Observed behavior (required)
I am forced to run
rad install kubernetes
before I can runrad init
on a clean setupDesired behavior (required)
I should not need to run any command before being able to successfully run
rad init
Workaround (optional)
System information
rad Version (required)
Operating system (required)
Win 10 (WSL2)
Additional context
AB#3960
The text was updated successfully, but these errors were encountered: