Skip to content

Commit 90df8a1

Browse files
authored
feat: plumb accelnet bool through interfaceinfo (#2746)
1 parent 1d8f89e commit 90df8a1

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

crd/multitenancy/api/v1alpha1/multitenantpodnetworkconfig.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ type InterfaceInfo struct {
6060
GatewayIP string `json:"gatewayIP,omitempty"`
6161
// DeviceType is the device type that this NC was created for
6262
DeviceType DeviceType `json:"deviceType,omitempty"`
63+
// AccelnetEnabled determines if the CNI will provision the NIC with accelerated networking enabled
64+
// +kubebuilder:validation:Optional
65+
AccelnetEnabled bool `json:"accelnetEnabled,omitempty"`
6366
}
6467

6568
// MultitenantPodNetworkConfigStatus defines the observed state of PodNetworkConfig

crd/multitenancy/manifests/multitenancy.acn.azure.com_multitenantpodnetworkconfigs.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ spec:
7575
goal state for this Pod
7676
items:
7777
properties:
78+
accelnetEnabled:
79+
description: AccelnetEnabled determines if the CNI will provision
80+
the NIC with accelerated networking enabled
81+
type: boolean
7882
deviceType:
7983
description: DeviceType is the device type that this NC was
8084
created for

0 commit comments

Comments
 (0)