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
Bug 1476173 - Cleanup deleting namespaces #529
Conversation
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.
This is what we were discussing. Looks okay to me. ACK
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.
Just one question but LGTM otherwise
| if ok, status, err := h.validateUser(userInfo.Username, serviceInstance.Context.Namespace); !ok { | ||
| writeResponse(w, status, broker.ErrorResponse{Description: err.Error()}) | ||
| return | ||
| if !nsDeleted { |
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.
Don't we need to check and not run the pod during unbind like deprovision?
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.
I haven't put this in for now, since I believe launch_apb_on_bind would have to be turned on. I can add it, as long as we think it's worth doing now.
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.
Fixed
| @@ -105,7 +105,7 @@ func setFailedDeprovisionJob(dao *dao.Dao, dmsg *DeprovisionMsg) { | |||
| } | |||
|
|
|||
| func cleanupDeprovision( | |||
| podName string, instance *apb.ServiceInstance, dao *dao.Dao, log *logging.Logger, | |||
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.
👍
it's terminating and clean up the data without executing the deprovision.
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
* Bug 1476173 - Skip user permission verification on namespace if it's terminating and clean up the data without executing the deprovision. * Bug 1476173 - Skipping apb launch on unbind if namespace is deleting.
Redo deprovision of apbs in terminating namespaces to work when autoescalate is false. Skip user permission verification if the namespace is being deleted and clean up our etcd without running deprovision.