Skip to content

Commit f4e81bd

Browse files
committed
reference
1 parent 18bab91 commit f4e81bd

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

crd/multitenancy/api/v1alpha1/multitenantpodnetworkconfig.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
package v1alpha1
55

66
import (
7-
"github.com/Azure/azure-container-networking/cns/types/infiniband"
87
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
98
)
109

@@ -83,7 +82,7 @@ type InterfaceInfo struct {
8382
AccelnetEnabled bool `json:"accelnetEnabled,omitempty"`
8483
// IBStatus is the programming status of the infiniband device
8584
// +kubebuilder:validation:Optional
86-
IBStatus infiniband.Status `json:"ibStatus,omitempty"`
85+
IBStatus InfinibandStatus `json:"ibStatus,omitempty"`
8786
}
8887

8988
// MultitenantPodNetworkConfigStatus defines the observed state of PodNetworkConfig

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,13 @@ spec:
106106
ibStatus:
107107
description: IBStatus is the programming status of the infiniband
108108
device
109-
type: integer
109+
enum:
110+
- Available
111+
- ProgrammingPending
112+
- ProgrammingFailed
113+
- ProgrammingComplete
114+
- ReleasePending
115+
type: string
110116
macAddress:
111117
description: MacAddress is the MAC Address of the VM's NIC which
112118
this network container was created for

0 commit comments

Comments
 (0)