diff --git a/crd/multitenancy/api/v1alpha1/multitenantpodnetworkconfig.go b/crd/multitenancy/api/v1alpha1/multitenantpodnetworkconfig.go index c217f2dafa..f1f76b5d4c 100644 --- a/crd/multitenancy/api/v1alpha1/multitenantpodnetworkconfig.go +++ b/crd/multitenancy/api/v1alpha1/multitenantpodnetworkconfig.go @@ -48,6 +48,8 @@ type MultitenantPodNetworkConfigSpec struct { // MAC addresses of the IB devices to use for a pod // +kubebuilder:validation:Optional IBMACAddresses []string `json:"IBMACAddresses,omitempty"` + // PodUID is the UID of the pod + PodUID string `json:"podUID,omitempty"` } // +kubebuilder:validation:Enum=Unprogrammed;Programming;Programmed;Unprogramming;Failed @@ -105,6 +107,9 @@ type MultitenantPodNetworkConfigStatus struct { // DefaultDenyACL bool indicates whether default deny policy will be present on the pods upon pod creation // +kubebuilder:validation:Optional DefaultDenyACL bool `json:"defaultDenyACL"` + // NodeName is the name of the node where the pod is scheduled + // +kubebuilder:validation:Optional + NodeName string `json:"nodeName,omitempty"` } func init() { diff --git a/crd/multitenancy/manifests/multitenancy.acn.azure.com_multitenantpodnetworkconfigs.yaml b/crd/multitenancy/manifests/multitenancy.acn.azure.com_multitenantpodnetworkconfigs.yaml index 9f96d6a691..9d754a9773 100644 --- a/crd/multitenancy/manifests/multitenancy.acn.azure.com_multitenantpodnetworkconfigs.yaml +++ b/crd/multitenancy/manifests/multitenancy.acn.azure.com_multitenantpodnetworkconfigs.yaml @@ -70,6 +70,9 @@ spec: podNetworkInstance: description: name of PNI object from requesting cx pod type: string + podUID: + description: PodUID is the UID of the pod + type: string required: - podNetwork type: object @@ -135,6 +138,9 @@ spec: ncID: description: Deprecated - use InterfaceInfos type: string + nodeName: + description: NodeName is the name of the node where the pod is scheduled + type: string primaryIP: description: Deprecated - use InterfaceInfos type: string