cloudfoundry / korifi

Cloud Foundry on Kubernetes
Apache License 2.0
318 stars 64 forks source link

[Chore]: Refactor api/repositories errors #403

Closed Birdrock closed 4 months ago

Birdrock commented 2 years ago

Background

There are 3 separate errors types for resources not found or permissions issues. NotFoundError can contain the most information. ResourceNotFoundError is unused. PermissionDeniedOrNotFoundError is used in a few places.

Action to take

Impact

This will reduce some clutter in logging and eliminate dead code. This is low impact tech debt.

Dev Notes

https://github.com/cloudfoundry/cf-k8s-controllers/blob/issue-398/api/repositories/errors.go

Is denied or not found a convention?

kieron-dev commented 2 years ago

ToDo:

julian-hj commented 2 years ago

@kieron-dev @gcapizzi @Birdrock we see that this is marked as "done" in the project. Can the issue be closed also, or is there some process subtlety that I'm not aware of?

kieron-dev commented 2 years ago

@julian-hj Yep - this should be closed. We don't require any PM style acceptance on chores.