From af91fdf11b9c8beb860a90b440c05d889c402155 Mon Sep 17 00:00:00 2001 From: Shreyas Date: Tue, 30 Sep 2025 13:19:58 -0700 Subject: [PATCH 1/6] Extending the MTPNC status --- .../api/v1alpha1/multitenantpodnetworkconfig.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crd/multitenancy/api/v1alpha1/multitenantpodnetworkconfig.go b/crd/multitenancy/api/v1alpha1/multitenantpodnetworkconfig.go index c217f2dafa..2721c937aa 100644 --- a/crd/multitenancy/api/v1alpha1/multitenantpodnetworkconfig.go +++ b/crd/multitenancy/api/v1alpha1/multitenantpodnetworkconfig.go @@ -105,6 +105,13 @@ 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"` + // PodName is the name of the pod + PodName string `json:"podName,omitempty"` + // PodUID is the uid of the pod + PodUID string `json:"podUID,omitempty"` } func init() { From 3bdfbe11c0f776257e4eac1a90abe11960bf26c9 Mon Sep 17 00:00:00 2001 From: Shreyas Date: Wed, 1 Oct 2025 12:25:20 -0700 Subject: [PATCH 2/6] Adding generated crd --- ...nancy.acn.azure.com_multitenantpodnetworkconfigs.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/crd/multitenancy/manifests/multitenancy.acn.azure.com_multitenantpodnetworkconfigs.yaml b/crd/multitenancy/manifests/multitenancy.acn.azure.com_multitenantpodnetworkconfigs.yaml index 9f96d6a691..197a2bc322 100644 --- a/crd/multitenancy/manifests/multitenancy.acn.azure.com_multitenantpodnetworkconfigs.yaml +++ b/crd/multitenancy/manifests/multitenancy.acn.azure.com_multitenantpodnetworkconfigs.yaml @@ -135,6 +135,15 @@ spec: ncID: description: Deprecated - use InterfaceInfos type: string + nodeName: + description: NodeName is the name of the node where the pod is scheduled + type: string + podName: + description: PodName is the name of the pod + type: string + podUID: + description: PodUID is the uid of the pod + type: string primaryIP: description: Deprecated - use InterfaceInfos type: string From c62c06b5ca076b5a0879a983c911554598a3e6f5 Mon Sep 17 00:00:00 2001 From: Shreyas Date: Thu, 2 Oct 2025 12:26:00 -0700 Subject: [PATCH 3/6] Adding to poduid to Spec --- .../api/v1alpha1/multitenantpodnetworkconfig.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/crd/multitenancy/api/v1alpha1/multitenantpodnetworkconfig.go b/crd/multitenancy/api/v1alpha1/multitenantpodnetworkconfig.go index 2721c937aa..d8e5510a6f 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 @@ -108,10 +110,6 @@ type MultitenantPodNetworkConfigStatus struct { // NodeName is the name of the node where the pod is scheduled // +kubebuilder:validation:Optional NodeName string `json:"nodeName,omitempty"` - // PodName is the name of the pod - PodName string `json:"podName,omitempty"` - // PodUID is the uid of the pod - PodUID string `json:"podUID,omitempty"` } func init() { From 9ad1784e8308d9cbe8e7a33af36a821e5136f782 Mon Sep 17 00:00:00 2001 From: Shreyas Date: Thu, 2 Oct 2025 14:00:37 -0700 Subject: [PATCH 4/6] Adding crd changes --- ...nancy.acn.azure.com_multitenantpodnetworkconfigs.yaml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/crd/multitenancy/manifests/multitenancy.acn.azure.com_multitenantpodnetworkconfigs.yaml b/crd/multitenancy/manifests/multitenancy.acn.azure.com_multitenantpodnetworkconfigs.yaml index 197a2bc322..e93289709c 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 @@ -138,12 +141,6 @@ spec: nodeName: description: NodeName is the name of the node where the pod is scheduled type: string - podName: - description: PodName is the name of the pod - type: string - podUID: - description: PodUID is the uid of the pod - type: string primaryIP: description: Deprecated - use InterfaceInfos type: string From 0780c32a2353f29d6431c3a4779683d26fb84447 Mon Sep 17 00:00:00 2001 From: shreyashastantram <105284415+shreyashastantram@users.noreply.github.com> Date: Fri, 3 Oct 2025 12:31:24 -0700 Subject: [PATCH 5/6] Update crd/multitenancy/api/v1alpha1/multitenantpodnetworkconfig.go Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: shreyashastantram <105284415+shreyashastantram@users.noreply.github.com> --- crd/multitenancy/api/v1alpha1/multitenantpodnetworkconfig.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crd/multitenancy/api/v1alpha1/multitenantpodnetworkconfig.go b/crd/multitenancy/api/v1alpha1/multitenantpodnetworkconfig.go index d8e5510a6f..f1f76b5d4c 100644 --- a/crd/multitenancy/api/v1alpha1/multitenantpodnetworkconfig.go +++ b/crd/multitenancy/api/v1alpha1/multitenantpodnetworkconfig.go @@ -48,7 +48,7 @@ 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 is the UID of the pod PodUID string `json:"podUID,omitempty"` } From dac3c5d2415f6a0f785aa97fd83b66a780cf9e65 Mon Sep 17 00:00:00 2001 From: shreyashastantram <105284415+shreyashastantram@users.noreply.github.com> Date: Fri, 3 Oct 2025 13:07:16 -0700 Subject: [PATCH 6/6] Update crd/multitenancy/manifests/multitenancy.acn.azure.com_multitenantpodnetworkconfigs.yaml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: shreyashastantram <105284415+shreyashastantram@users.noreply.github.com> --- ...multitenancy.acn.azure.com_multitenantpodnetworkconfigs.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crd/multitenancy/manifests/multitenancy.acn.azure.com_multitenantpodnetworkconfigs.yaml b/crd/multitenancy/manifests/multitenancy.acn.azure.com_multitenantpodnetworkconfigs.yaml index e93289709c..9d754a9773 100644 --- a/crd/multitenancy/manifests/multitenancy.acn.azure.com_multitenantpodnetworkconfigs.yaml +++ b/crd/multitenancy/manifests/multitenancy.acn.azure.com_multitenantpodnetworkconfigs.yaml @@ -71,7 +71,7 @@ spec: description: name of PNI object from requesting cx pod type: string podUID: - description: PodUID is the uid of the pod + description: PodUID is the UID of the pod type: string required: - podNetwork