Commit 8a35103
fix(apiserver-resources): ignore not-found errors during deletion (#386)
* fix(rolebinding): ignore not-found error during deletion
When deleting a RoleBinding, if the resource doesn't exist on the cloud
API server, treat it as success instead of retrying indefinitely. This
prevents the controller from getting stuck in an error loop during
helm uninstall when the remote resource was already cleaned up.
* test(controllers): cover not-found deletion for apiserver resources
Agent-Logs-Url: https://github.com/streamnative/pulsar-resources-operator/sessions/b16d9baf-494b-4238-a360-615646daac66
Co-authored-by: freeznet <1381618+freeznet@users.noreply.github.com>
* fix(controllers): unify delete-time not-found handling
Agent-Logs-Url: https://github.com/streamnative/pulsar-resources-operator/sessions/ee155778-92d2-4761-a44d-8ea1051096ed
Co-authored-by: freeznet <1381618+freeznet@users.noreply.github.com>
---------
Co-authored-by: Rui Fu <freeznet@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: freeznet <1381618+freeznet@users.noreply.github.com>1 parent 64d4f9d commit 8a35103
9 files changed
Lines changed: 638 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | | - | |
| 216 | + | |
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | | - | |
222 | | - | |
223 | 221 | | |
224 | 222 | | |
225 | 223 | | |
| |||
0 commit comments