Skip to content

Conversation

@ZhuoxiLi
Copy link
Contributor

What this PR does / why we need it:

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Special notes for your reviewer:

  1. Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.

Release note:


return
}
err = wait.PollImmediate(time.Second*3, time.Minute*1, func() (bool, error) {
if subscriptionInstance.Status.CurrentCSV == "" && subscriptionInstance.Status.State == "" {
Copy link
Contributor

Choose a reason for hiding this comment

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

We need to fetch the subscription again here to get the latest status information.

if err := r.Client.Get(ctx, csvKey, csvInstance); err != nil {
return client.IgnoreNotFound(err)
}
if err := r.Client.Delete(ctx, csvInstance); err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

We can just use the delete command

Copy link
Contributor

@horis233 horis233 left a comment

Choose a reason for hiding this comment

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

/lgtm

@ibm-ci-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: horis233, ZhuoxiLi

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ibm-ci-bot ibm-ci-bot merged commit 61bfb2e into IBM:master Jan 28, 2022
@ZhuoxiLi ZhuoxiLi deleted the recover-olm-issue branch February 23, 2022 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants