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

HARVESTER: SR-IOV polish #698

Merged
merged 1 commit into from
Apr 27, 2023
Merged

HARVESTER: SR-IOV polish #698

merged 1 commit into from
Apr 27, 2023

Conversation

DaiYuzeng
Copy link

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

return { numVFs: 0 };
const numVFs = this.resources[0].spec?.numVFs || 1;

return { numVFs, numVFsHistory: clone(numVFs) };

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

Copy link
Author

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);

Choose a reason for hiding this comment

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

diito

Copy link
Author

Choose a reason for hiding this comment

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

done.

@DaiYuzeng DaiYuzeng marked this pull request as ready for review April 27, 2023 03:15
Copy link

@WuJun2016 WuJun2016 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks

@WuJun2016 WuJun2016 merged commit caa8981 into harvester:master Apr 27, 2023
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