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

adding ignore-not-found flag

Open pratik-parikh01 opened this issue 8 months ago • 2 comments

Description of the change: This issue: https://github.com/operator-framework/operator-sdk/issues/5195 This PR adds the --ignore-not-found flag to kubectl delete command in Makefile for make undeploy and make delete fixes #5195

Motivation for the change: kubectl delete fails when object to be delete is not found, with this change, it will ignore the error and overall command passes

Checklist

If the pull request includes user-facing changes, extra documentation is required:

pratik-parikh01 avatar Mar 09 '26 09:03 pratik-parikh01

Some issue on my laptop regarding signing the commit, please give me another day to find and fix it

pratik-parikh01 avatar Mar 09 '26 12:03 pratik-parikh01

@pratik-parikh01 Thanks for the PR, however you are editing generated content, so tests would fail.

Please update

  • https://github.com/operator-framework/operator-sdk/blob/master/internal/plugins/helm/v1/scaffolds/internal/templates/makefile.go

similar to the below

  • https://github.com/operator-framework/ansible-operator-plugins/pull/106/changes#diff-cd2bc57bf1c1bd8fd04b5764b7b1a04f8a6105abfd69b9bb75e059f3f91e66fb

acornett21 avatar Mar 09 '26 18:03 acornett21