nephio-project / nephio

Nephio is a Kubernetes-based automation platform for deploying and managing highly distributed, interconnected workloads such as 5G Network Functions, and the underlying infrastructure on which those workloads depend.
Apache License 2.0
104 stars 53 forks source link

All errors should translate to appropriate API-level HTTP statuses #667

Open liamfallon opened 5 months ago

liamfallon commented 5 months ago

Original issue URL: https://github.com/kptdev/kpt/issues/3216 Original issue user: https://github.com/mortent Original issue created at: 2022-05-22T22:56:38Z Original issue last updated at: 2023-01-26T04:15:35Z Original issue body: All errors in porch should be handled correctly in the apiserver and return the appropriate k8s errors. They should also include sufficient information to be useful and actionable. Currently Porch doesn't always handle errors correctly, leading to errors being logged from the aggregated apiserver and the user getting a generic error.

Original issue comments: Comment user: https://github.com/yuwenma Comment created at: 2023-01-13T12:54:09Z Comment last updated at: 2023-01-13T12:54:09Z Comment body: @mortent Do you mind giving some guidance or examples about this issue? Otherwise I feel like it might be too challenging for new contributors to understand and work on.

Comment user: https://github.com/yuwenma Comment created at: 2023-01-13T13:05:19Z Comment last updated at: 2023-01-13T13:05:19Z Comment body: Bump the priority because this issue can really improve the user understanding of Porch