-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
delete api command line #907
Comments
/assign |
It's a lot harder to safely delete things than it is to create them, so I'd like to have a more concrete usecase for this first. |
I define a CRD called It caused my code not clean... |
right, but it's hard for kubebuilder to know if you've added or modified anything else in the meantime, especially in shared files. Are there cases where |
If you
wouldn't you completely delete the API? Only |
people can happily add common types to either of those files, split things off into multiple files, etc afterwards. Scaffolding is a starting point. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Hi @DirectXMan12, By following your comments here shows that we should not move forward with. Am I right? If yes, could we close this one as not accepted/deferred? Please, let me know if we should try to address this request. |
It's actually a lot more involved than this, there are a bunch of Kustomize scripts to clean up and more. I guess it's ok as Kubebuilder is mostly a toy tool. |
@ryanzhang-oss you are right that there are more files involved. But toy tool does not describe kubebuilder. It is an scaffolder, it is not a full code generator but an squeleton generator for you to shape to your needs. |
Can you imagine using a scaffolding tool that generates tons of human unfriendly files in your production environment that you know every resource you created can't be easily removed later? Not sure what else can I call such a tool, a POC? |
@ryanzhang-oss kubebuilder solved many problems but not all, it let us more efficiency,a toy tool is inappropriate I think. But we really hope kubebuilder better. |
So, I'm sympathetic with the "I don't know which kustomize files to delete" argument. Those are a bit easier to remove. We can perhaps try to find some way to make that easier. However, under our current setup, undoing code changes is not particularly feasible. Perhaps this'll change in the future. For now, please try not to be antagonistic. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Maybe some detailed documents can at least make it easier for people to delete an generated API manually. |
+1
Sent from my T-Mobile 5G Device
Get Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: Qian_Xiao ***@***.***>
Sent: Friday, January 7, 2022 3:01:41 PM
To: kubernetes-sigs/kubebuilder ***@***.***>
Cc: Ryan Zhang ***@***.***>; Mention ***@***.***>
Subject: Re: [kubernetes-sigs/kubebuilder] delete api command line (#907)
Maybe some detailed documents can at least make it easier for people to delete an generated API manually.
—
Reply to this email directly, view it on GitHub<#907 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AODXOHBWBVW5SSBKAJLY37DUU5WFLANCNFSM4IIB7OTA>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Is there still no way to delete a CRD? |
Would also need a feature like this or at least some documentation on what to delete manually. |
Indeed |
I think it would be nice we add delete commands for all interfaces and not only create api one It might be a nice good first issue for who is looking for something within a L size and already pushed a couple of PRs. Following the details
|
/kind feature
We need to delete CRD
kubebuilder delete api --group infra --version v1 --kind Router
The text was updated successfully, but these errors were encountered: