-
Notifications
You must be signed in to change notification settings - Fork 53
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
cli: iam destroy #946
cli: iam destroy #946
Conversation
✅ Deploy Preview for constellation-docs canceled.
|
0d24580
to
c43ebe9
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.
Some things left to do:
- Check if there is a running cluster. We should ensure that we call
constellation terminate
before we allow a IAM destroy. You can use the files that are deleted incmd/terminate.go
as indicator. - Only ask user once for confirmation. We should check for the gcpServiceAccountKey before asking the user for confirmation, and state that the file will be deleted there.
- We should add some debug output like the other commands have.
- Deletion of the gcpKey file can be done directly in the
cmd
package, no need to have a method for that incloudcmd
. Maybe make the cloudcmd func return the gcpKey directly
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.
Looks good to me
Just a heads up: cli/internal/cmd/iam.go
has undergone some changes (mainly the removal of createiam<CSP>.go
files so there will be merge conflicts
Please rebase before working on the changes requested. 🐳 |
564b1e8
to
6798ff2
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.
lgtm! 🐳
bfae283
to
fe2c696
Compare
Proposed change(s)
iam destroy
subcommand to destroy IAM configuration with the Constellation CLIDestroyCluster
function in terraform.go toDestroy
This change will allow users to delete their IAM configurations using the constellation CLI instead of the terraform CLI.
Checklist