Current runoperator-sdk new app-operator --api-version=app.example.com/v1alpha1 --kind=AppService creates a new folder called app-operator. If I call operator-sdk new app-operator --api-version=app.example.com/v1alpha1 --kind=AppService, the command overrides everything there is in the app-operator folder. I don't think that's behavior we want. In rails, the new command skips any files that have been created and generates the ones that aren't there. The rails behavior seems great but might complicate the current operator-sdk new code base to support that. I think the simpler way is to check if app-operator folder has been created already; if not, create it; if created, then skip the files and dirs creation.
cc/ @hasbro17 @hongchaodeng
Current run
operator-sdk new app-operator --api-version=app.example.com/v1alpha1 --kind=AppServicecreates a new folder calledapp-operator. If I calloperator-sdk new app-operator --api-version=app.example.com/v1alpha1 --kind=AppService, the command overrides everything there is in theapp-operatorfolder. I don't think that's behavior we want. Inrails, thenewcommand skips any files that have been created and generates the ones that aren't there. The rails behavior seems great but might complicate the current operator-sdk new code base to support that. I think the simpler way is to check ifapp-operatorfolder has been created already; if not, create it; if created, then skip the files and dirs creation.cc/ @hasbro17 @hongchaodeng