-
Notifications
You must be signed in to change notification settings - Fork 54
cli: add --workspace
flag to set base directory for Constellation workspace
#2148
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
Conversation
✅ Deploy Preview for constellation-docs canceled.
|
0791d86
to
fef45e0
Compare
545f5dc
to
f51cb28
Compare
nit: change the title to "cli: add In the description I'd add: |
--workspace
flag to set base directory for Constellation workspace
If I understand this PR correctly, you update every use of file paths and prepend the workspace path to it. EDIT: Example implementation |
Had a rough look over the changes and lgtm. Maybe we can test the flag explicitly in our e2e_test (simply cd .. and then use the workspace flag?) |
I think this would simplify the changes a lot and remove unneeded parameters. I think it's better to choose this if there is no other reason for the current way. Even thought it would be some additional work :/ |
Tried this, and found a good solution that works. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Works great and LGTM.
Feel free to add or dismiss the short flag -C
.
The one file under my ownership looks fine. Unassigned review. |
d31d77b
to
7a9db29
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did some basic manual testing and looked at codeowned files.
👍
66f95e6
to
a7f81a6
Compare
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
a7f81a6
to
abebfed
Compare
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
abebfed
to
4fb92ed
Compare
Context
The goal of this PR is to let users specify the Constellation workspace using flags.
For the longest time, our CLI allowed setting a path for the config and master secret files. Other files and folders however, were always assumed to be in the current working directory.
This PR aims to address this issue by adding the
--workspace
flag, which allows a user to set the workspace for a CLI command.All actions on files will then be run from the given workspace instead from the directory the command is executed from.
Proposed change(s)
--config
flag--master-secret
flag--workspace
flag--config
and--master-secret
flags by allowing a user to specify the base directory context from where CLI commands are executedAdditional info
Not sure if we can properly test the flag using the e2e tests, so I request the reviewers to try out their workflows with the new flag and report any issues that may occur.
I already did some manual testing on GCP. Currently missing testing for IAM migration, general updates and manual tests on Azure/AWS.
e2e test Azure
e2e test AWS
Checklist