adding ignore-not-found flag
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:
- [ ] Add a new changelog fragment in
changelog/fragments(seechangelog/fragments/00-template.yaml) - [ ] Add or update relevant sections of the docs website in
website/content/en/docs
Some issue on my laptop regarding signing the commit, please give me another day to find and fix it
@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