-
Notifications
You must be signed in to change notification settings - Fork 583
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
✨ Implement support for EFA interface type #5275
base: main
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Welcome @RadekManak! |
Hi @RadekManak. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/ok-to-test |
@@ -153,6 +163,11 @@ type AWSMachineSpec struct { | |||
// +kubebuilder:validation:MaxItems=2 | |||
NetworkInterfaces []string `json:"networkInterfaces,omitempty"` | |||
|
|||
// NetworkInterfaceType is the interface type of the primary network Interface. |
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.
Maybe mention here that the default is interface
and that ""
and interface
are equivalent.
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.
Maybe we can have explicit default here? E.g. // +kubebuilder:default=interface
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.
Is it possible in the future that we might want to change the default? For example, what if Amazon deprecates the current interface type and makes EFA the choice, we would want to move folks across to EFA. If we add an explicit default here, then they would have to manually update their configs to move across should things ever change
Overall looks good, just one small comment. /assign @damdo |
// NetworkInterfaceType is the type of network interface. | ||
type NetworkInterfaceType string | ||
|
||
const ( |
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 follow Kube conventions and use PascalCase rather than these lowercase version, so Interface
and EFA
// NetworkInterfaceType is the interface type of the primary network Interface. | ||
// +kubebuilder:validation:Enum=interface;efa | ||
// +optional | ||
NetworkInterfaceType *NetworkInterfaceType `json:"networkInterfaceType,omitempty"` |
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.
Does this need to be a pointer? There's no difference between ""
and a nil value right?
What type of PR is this?
/kind feature
What this PR does / why we need it:
This PR adds a new enum field to AWSMachineSpec called NetworkInterfaceType that configures the type of the first interface (also called primary interface) on the created instance.
The two values are:
NetworkInterfaceTypeENI: This is the default value, same as nil. The network interface will be ENI.
NetworkInterfaceTypeEFAWithENAInterface: This option sets up both ENA (for IP networking) and EFA interface for HPC connections.
Fixes #3035
Special notes for your reviewer:
Checklist:
Release note: