File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
crd/multitenancy/api/v1alpha1 Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 1+ package infiniband
2+
3+ type Status int
4+
5+ const (
6+ Available Status = 0
7+ ProgrammingPending Status = 1
8+ ProgrammingFailed Status = 2
9+ ProgrammingComplete Status = 3
10+ ReleasePending Status = 4
11+ )
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ package v1alpha1
66import (
77 "net"
88
9+ "github.com/Azure/azure-container-networking/cns/types/infiniband"
910 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
1011)
1112
@@ -48,6 +49,7 @@ type MultitenantPodNetworkConfigSpec struct {
4849 // name of the requesting cx pod
4950 PodName string `json:"podName,omitempty"`
5051 // list of IB MACs to use for a pod
52+ // +kubebuilder:validation:Optional
5153 IBMACs []net.HardwareAddr `json:"IBMACs,omitempty"`
5254}
5355
@@ -70,6 +72,9 @@ type InterfaceInfo struct {
7072 // AccelnetEnabled determines if the CNI will provision the NIC with accelerated networking enabled
7173 // +kubebuilder:validation:Optional
7274 AccelnetEnabled bool `json:"accelnetEnabled,omitempty"`
75+ // IBStatus is the status of the infiniband programming for this network container
76+ // +kubebuilder:validation:Optional
77+ IBStatus infiniband.Status `json:"ibStatus,omitempty"`
7378}
7479
7580// MultitenantPodNetworkConfigStatus defines the observed state of PodNetworkConfig
You can’t perform that action at this time.
0 commit comments