operator-sdk icon indicating copy to clipboard operation
operator-sdk copied to clipboard

Support Deletion or Renaming of APIs via CLI

Open mike-weiner opened this issue 4 months ago • 3 comments

Feature Request

Describe the problem you need a feature to resolve.

I've been using operator-sdk recently to scaffold out a proof-of-concept operator. That iterative process has included a lot of renaming of controllers and CRDs.

Up to this point I've used operator-sdk init [flags] followed up with operator-sdk create api [flags] to create a new project and rename the APIs. I then manually copy + paste code from the old project to the new project. This makes source controlling things somewhat difficult.

Describe the solution you'd like.

After creating an API via operator-sdk create api [flags], it'd be great to have a operator-sdk delete api [flags] and/or operator-sdk rename api [flags] for folks that are iterating on their design and want an easy way to modify what they've already begun to create.

/language go

mike-weiner avatar Sep 01 '25 02:09 mike-weiner

I would like to solve this issue

aviralgarg05 avatar Nov 28 '25 20:11 aviralgarg05

Hi @aviralgarg05, are you actively working on this issue?

manavrajvanshi avatar Dec 08 '25 12:12 manavrajvanshi

yes

aviralgarg05 avatar Dec 08 '25 12:12 aviralgarg05

@mike-weiner did you figure out a way other than the manual copy-paste in the interim? I'm currently relying on GPTs to do the grunt work, but that isn't sustainable.

manavrajvanshi avatar Dec 16 '25 12:12 manavrajvanshi

@manavrajvanshi - Nope. Unfortunately the only thing that I found was manual copy-paste in the interim. I actually found it easier while I was iterating to just scaffold out an entirely new project and re-create the CRDs with the changes I wanted.

But that clearly does not scale well.

mike-weiner avatar Dec 16 '25 15:12 mike-weiner