Skip to content
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 - Skip deprovision if the namespace is being deleted #520

Merged
merged 1 commit into from Oct 29, 2017
Merged

Bug 1476173 - Skip deprovision if the namespace is being deleted #520

merged 1 commit into from Oct 29, 2017

Conversation

cfchase
Copy link
Contributor

@cfchase cfchase commented Oct 27, 2017

Skip deprovision if the namespace is being deleted since we can't access it and it's going to be deleted anyway.

@cfchase cfchase changed the title Bug 1476173 - Skip deprovision if the namespace is being deleted sinc… Bug 1476173 - Skip deprovision if the namespace is being deleted Oct 27, 2017
@openshift-ci-robot openshift-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Oct 27, 2017
return false, err
}

return namespace == nil || namespace.Status.Phase == "Terminating", nil
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would prefer to use the constant to compare the value with.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, didn't realize that existed. Fixed

…e we

can't access it and it's going to be deleted anyway.
Copy link
Contributor

@jmrodri jmrodri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's okay. My initial reaction was that isNamespaceDeleted shouldn't be in deprovision.go, but I'm not sure where I would put it. So I'll approve it as is.

@jmrodri jmrodri added the bug label Oct 28, 2017
@jmrodri jmrodri merged commit 167f108 into openshift:master Oct 29, 2017
@cfchase cfchase deleted the skip-deprovision-ns-deleted branch November 29, 2017 14:17
jianzhangbjz pushed a commit to jianzhangbjz/ansible-service-broker that referenced this pull request May 17, 2018
…e we (openshift#520)

can't access it and it's going to be deleted anyway.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants