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
OADP-605: Fix edge case for already exists resources #186
OADP-605: Fix edge case for already exists resources #186
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.
Minor nit -- comment was misleading. Fix the comment and we're good to merge.
if isAlreadyExistsError || objectExists { | ||
// do a get call if we did not run this previously i.e. | ||
// we've only run this for errors other than isAlreadyExistError | ||
if fromCluster == nil { |
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 objectexists == true then fromcluster wouldn't be nil.
No need to call get here.
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.
We need a get call for the AlreadyExistError
case, the get call you are referring to is done if error from create is not AlreadyExistsError
/cherry-pick konveyor-1.9.1 |
@shubham-pampattiwar: new pull request created: #187 In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
No description provided.