Skip to content

Commit c7117db

Browse files
committed
Status too
1 parent 532049f commit c7117db

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

cns/types/infiniband/status.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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+
)

crd/multitenancy/api/v1alpha1/multitenantpodnetworkconfig.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ package v1alpha1
66
import (
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

0 commit comments

Comments
 (0)