Skip to content

Conversation

qinqon
Copy link
Contributor

@qinqon qinqon commented Sep 15, 2025

No description provided.

@qinqon qinqon changed the title wip DNM Sep 15, 2025
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request adds kubevirt to the list of providers considered for rd-network-kargs. The implementation for kubevirt is a stub that correctly indicates the feature is not yet supported by logging a warning. The changes are functionally correct. I've left a couple of minor comments regarding code style to improve readability and consistency.

As a general note, it would be helpful to use more descriptive titles and provide a brief description for pull requests in the future. This helps reviewers understand the context and purpose of the changes more quickly.

use crate::providers::proxmoxve::ProxmoxVEConfigDrive;
use crate::providers::vmware::VmwareProvider;
use crate::providers::kubevirt::KubeVirtProvider;

Choose a reason for hiding this comment

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

medium

For consistency and readability, it's good practice to keep use statements sorted alphabetically. The kubevirt import should be placed before proxmoxve to maintain alphabetical order. Running rustfmt would likely handle this automatically.

match provider {
"vmware" => VmwareProvider::try_new()?.rd_network_kargs(),
"proxmoxve" => ProxmoxVEConfigDrive::try_new()?.rd_network_kargs(),
"kubevirt" => KubeVirtProvider::try_new()?.rd_network_kargs(),

Choose a reason for hiding this comment

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

medium

To improve readability, it's helpful to keep match arms sorted alphabetically by their string patterns. The "kubevirt" arm should be placed before "proxmoxve" and "vmware". This is a minor style point, but it improves code consistency.

@qinqon qinqon force-pushed the kubevirt_rd_network_kargs branch 6 times, most recently from cfe9a82 to 1f1cbba Compare September 18, 2025 07:38
Signed-off-by: Enrique Llorente <[email protected]>
@qinqon qinqon force-pushed the kubevirt_rd_network_kargs branch from 1f1cbba to 3c1f0aa Compare September 18, 2025 09:05
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.

1 participant