-
Notifications
You must be signed in to change notification settings - Fork 380
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
Do not panic when a default snapshotclass does not exist #1210
Do not panic when a default snapshotclass does not exist #1210
Conversation
Please just close it if I don't understand the context. |
5fa26d0
to
a12d2b5
Compare
The only other call to |
So while this indeed does make the panic disappear. It does not actually fixes underlying issue.
What is worse is, when this happens - snapshotter is spamming the API server with
This objects's |
I agree with you, @gnufied, but unfortunately, I cannot reproduce the behavior you're experiencing.
Could you let me know if you are sure about this? IIRC resourceVersion is not granted to start from 1.
|
You are right that
Which is concerning for me. |
okay, this is looking better now:
|
/lgtm |
return ctrl.createSnapshotWrapper(content) | ||
} | ||
|
||
return content, 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.
Should we have some tests for this? For now - unit tests will be good. In long term, we should have some e2e as well I think. I am not sure if all users will have a default snapshotclass when testing volumegroupsnapshot feature.
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.
Opened an issue to track this: #1211
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: leonardoce, xing-yang The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #1203
Special notes for your reviewer:
Does this PR introduce a user-facing change?: