-
Notifications
You must be signed in to change notification settings - Fork 32
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
HARVESTER: SR-IOV polish #698
Conversation
return { numVFs: 0 }; | ||
const numVFs = this.resources[0].spec?.numVFs || 1; | ||
|
||
return { numVFs, numVFsHistory: clone(numVFs) }; |
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.
don't need clone Number
type
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.
done.
@@ -63,8 +65,18 @@ export default class SRIOVDevice extends SteveModel { | |||
} | |||
|
|||
async disableDevice() { | |||
this.spec.numVFs = 0; | |||
await this.save(); | |||
const numVFsHistory = clone(this.spec.numVFs); |
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.
diito
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.
done.
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.
LGTM, thanks
Summary
PR Checklist
Is this a multi-tenancy feature/bug?Yes, the relevant RBAC changes are at:Do we need to backport changes to the old Rancher UI, such as RKE1?Yes, the relevant PR is at:Are backend engineers aware of UI changes?Yes, the backend owner is:Occurred changes and/or fixed issues
Technical notes summary
Areas or cases that should be tested
Areas which could experience regressions
Screenshot/Video