-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a descriptive message for an invalid Patch delete #2111
Conversation
Does the PR have any schema changes?Looking good! No breaking changes found. |
awaitErr = fmt.Errorf( | ||
"this Patch resource is currently managing a required field, so it can't be deleted "+ | ||
"directly. Either set the `retainOnDelete` resource option, or transfer ownership of the "+ | ||
"field before deleting: %s", cause.Field) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did we want to add a link to some tutorial for this once we have one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I'm planning to update the message once we have some better docs online
Does the PR have any schema changes?Looking good! No breaking changes found. |
fccd615
to
825c5a5
Compare
Does the PR have any schema changes?Looking good! No breaking changes found. |
Does the PR have any schema changes?Looking good! No breaking changes found. |
Proposed changes
With this change, the error message looks like this:
Related issues (optional)
Fix #2107