operator-framework / operator-sdk

SDK for building Kubernetes applications. Provides high level APIs, useful abstractions, and project scaffolding.
https://sdk.operatorframework.io
Apache License 2.0
7.21k stars 1.74k forks source link

Add --ignore-not-found=true to scaffolded `undeploy` make target #5195

Open asmacdo opened 3 years ago

asmacdo commented 3 years ago

Feature Request

While deploying the objects in config/ with kustomize, sometimes it goes wrong (user error) and not all the objects are created. When this happens, make undeploy fails on the first object that doesn't exist. Its easy to work around, just delete them manually. However this interrupts development flow and is a bit annoying.

If we add --ignore-not-found, make undeploy will always try to delete all the objects.

/language go /language ansible /language helm

openshift-bot commented 2 years ago

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close. Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

camilamacedo86 commented 2 years ago

It was added to Golang: https://github.com/operator-framework/operator-sdk/blob/master/testdata/go/v3/memcached-operator/Makefile#L118-L120

We still need to update the Makefile for Ansible/Helm and the new Go+Helm plugin.

c/c @asmacdo @fabianvf @varshaprasad96

camilamacedo86 commented 2 years ago

/lifecycle frozen

openshift-bot commented 2 years ago

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten. Rotten issues close after an additional 30d of inactivity. Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten /remove-lifecycle stale

asmacdo commented 2 years ago

/lifecycle frozen

camilamacedo86 commented 2 years ago

Done for GO: https://github.com/operator-framework/operator-sdk/blob/master/testdata/go/v3/memcached-operator/Makefile#L126-L128 because of the KB bump

Missing update the Ansible/Helm dockerfile boilerplate only

ashutosh887 commented 1 year ago

Let me know if any work needs to be done on this issue @camilamacedo86 I see it's a Good First Issue