-
Notifications
You must be signed in to change notification settings - Fork 20
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
enhance resource deletion flow. #111
enhance resource deletion flow. #111
Conversation
8146a09
to
3d1be1e
Compare
/assign @qiujian16 @clyang82 @skeeey |
3d1be1e
to
6b844b6
Compare
Signed-off-by: morvencao <[email protected]>
6b844b6
to
6853f9d
Compare
|
||
// set the deletedAt field if the resource has been marked as deleted | ||
if !resource.DeletedAt.Time.IsZero() { | ||
res.DeletedAt = openapi.PtrTime(resource.DeletedAt.Time) |
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.
why need this check? can we just use DeletedAt: = openapi.PtrTime(resource.DeletedAt)
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.
If we don't have this check, the deleted_at
for HTTP response will be time zero value, instead of null.
ref: #101 |
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.
LGTM
This PR enhance the resource deletion flow by:
ManifestsDeleted
conditionManifestsDeleted
condition in the status update and delete the resource record permanently.