Better error information for GitLab-managed Kubernetes resources
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Summary
Provide better error information when failure during generating resources following the default templates.
Errors during creating / updating the managed resource
Currently, when the job failed due to prerequisites failure, it only shows the general error information. It's not detailed and not enough information to look into why it failed. See: !177525 (comment 2297387423)
Errors during deleting the managed resource
Additionally, let's consider how we can provide better error information during the managed resource deletion. We've discussed about this in the MR: !188024 (comment 2453244948), but because the managed resource deletion will be processed asynchronously, we can't return the error information right after stopping the environment. We need to think about how we can provide when the deletion fails and its errors. I think we can use the managed resource record's tracked_objects field to provide K8s errors.
This is a part of GitLab-managed Kubernetes resources (&16130).
