-
Notifications
You must be signed in to change notification settings - Fork 78
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
feat: remove requirement to use imported resource when apply #1260
Conversation
Pull Request Test Coverage Report for Build 10270840594Details
💛 - Coveralls |
@hoangndst Hi, sorry for taking some time to review this PR. We discussed about the support of Kusion for importing existing resources again. Regarding the issue of And regarding the issue of remote imported resources being updated by the current configurations during In addition, we think that there should still be users who hope to use Kusion to update the imported resources, such as taking over the applications previously created with Terraform or cloud vendor console. Therefore, we are considering whether to add a field in the cc @ffforest |
About clearing the The issue of empty kusion id, actually there is a field called projectSelector in the modules configurations in Workspace. About this I thinks for more flexible, we still need to remove requirement to use imported resource. More example: 2 project declared in projectSelector, and this The case use Kusion to update the imported resources, such as taking over the applications previously created with Terraform or cloud vendor console. I agree with you for that case and add a field in the modules configurations in Workspace to act as a switch for updating the imported resources is a good idea. For more I think if will be more helpful if we add a field in modules configurations just for imported resource, all resources of project in workspace that created will be added in that fields. For example: in case we created a project in that workspace and in other project in the same workspace where we also want to use the resources created in the previous project, we must import again. Only one concerned that about the config to allow which project to use a specific resource. |
@hoangndst Thanks for sharing your constructive ideas! I agree with you that we can remove the validation for Regarding clearing the As for the feature of reusing the resources applied by an application with Kusion, I think this is indeed an exciting idea. And we can further discuss this later together with the field used to declare an imported resource to be updated. In fact, besides the way to add a field in |
@hoangndst I've tested this PR and found that it works fine with the remote cloud resources, but for local Terraform resources like main.tf.json:
However, I think this corner case might be a problem with the process logic of applying the imported resources. Perhaps we need to set the cc @ffforest |
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
What type of PR is this?
/kind feature
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #1259
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., design docs, usage docs, etc.: