Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions crd/multitenancy/api/v1alpha1/multitenantpodnetworkconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,22 @@ type MultitenantPodNetworkConfigSpec struct {
PodNetwork string `json:"podNetwork"`
// name of the requesting cx pod
PodName string `json:"podName,omitempty"`
// MAC addresses of the IB devices to use for a pod
// +kubebuilder:validation:Optional
IBMACAddresses []string `json:"IBMACAddresses,omitempty"`
}

// +kubebuilder:validation:Enum=Unprogrammed;Programming;Programmed;Unprogramming;Failed
type InfinibandStatus string

const (
Unprogrammed InfinibandStatus = "Unprogrammed"
Programming InfinibandStatus = "Programming"
Programmed InfinibandStatus = "Programmed"
Unprogramming InfinibandStatus = "Unprogramming"
Failed InfinibandStatus = "Failed"
)

type InterfaceInfo struct {
// NCID is the network container id
NCID string `json:"ncID,omitempty"`
Expand All @@ -66,6 +80,9 @@ type InterfaceInfo struct {
// AccelnetEnabled determines if the CNI will provision the NIC with accelerated networking enabled
// +kubebuilder:validation:Optional
AccelnetEnabled bool `json:"accelnetEnabled,omitempty"`
// IBStatus is the programming status of the infiniband device
// +kubebuilder:validation:Optional
IBStatus InfinibandStatus `json:"ibStatus,omitempty"`
}

// MultitenantPodNetworkConfigStatus defines the observed state of PodNetworkConfig
Expand Down
7 changes: 6 additions & 1 deletion crd/multitenancy/api/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ spec:
description: MultitenantPodNetworkConfigSpec defines the desired state
of PodNetworkConfig
properties:
IBMACAddresses:
description: MAC addresses of the IB devices to use for a pod
items:
type: string
type: array
podName:
description: name of the requesting cx pod
type: string
Expand Down Expand Up @@ -98,6 +103,16 @@ spec:
gatewayIP:
description: GatewayIP is the gateway ip of the injected subnet
type: string
ibStatus:
description: IBStatus is the programming status of the infiniband
device
enum:
- Unprogrammed
- Programming
- Programmed
- Unprogramming
- Failed
type: string
macAddress:
description: MacAddress is the MAC Address of the VM's NIC which
this network container was created for
Expand Down
Loading