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

Prevent multiple restores #41

Merged
merged 1 commit into from
Sep 30, 2020
Merged

Conversation

mrajashree
Copy link
Contributor

@mrajashree mrajashree commented Sep 28, 2020

#9

@mrajashree mrajashree force-pushed the leaserestore branch 4 times, most recently from 3ca1f3f to 6e009f6 Compare September 29, 2020 16:30
@mrajashree mrajashree requested a review from dramich September 29, 2020 16:43
@mrajashree mrajashree force-pushed the leaserestore branch 7 times, most recently from 566438a to 50f79c8 Compare September 29, 2020 18:24
Comment on lines +113 to +115
lease, err := leaseClient.Get(ctx, leaseName, k8sv1.GetOptions{})
if err == nil && lease != nil {
leaseClient.Delete(ctx, leaseName, k8sv1.DeleteOptions{})
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this could cause issues in the future if we have more than one running but should be fine for now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

made an issue for 2.5.x to track it

@mrajashree mrajashree merged commit 8e6b2da into rancher:master Sep 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants