Skip to content

Commit 067ae97

Browse files
Extending the MTPNC status (#4058)
* Extending the MTPNC status * Adding generated crd * Adding to poduid to Spec * Adding crd changes * Update crd/multitenancy/api/v1alpha1/multitenantpodnetworkconfig.go Co-authored-by: Copilot <[email protected]> Signed-off-by: shreyashastantram <[email protected]> * Update crd/multitenancy/manifests/multitenancy.acn.azure.com_multitenantpodnetworkconfigs.yaml Co-authored-by: Copilot <[email protected]> Signed-off-by: shreyashastantram <[email protected]> --------- Signed-off-by: shreyashastantram <[email protected]> Co-authored-by: Copilot <[email protected]>
1 parent 1cc30b2 commit 067ae97

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

crd/multitenancy/api/v1alpha1/multitenantpodnetworkconfig.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ type MultitenantPodNetworkConfigSpec struct {
4848
// MAC addresses of the IB devices to use for a pod
4949
// +kubebuilder:validation:Optional
5050
IBMACAddresses []string `json:"IBMACAddresses,omitempty"`
51+
// PodUID is the UID of the pod
52+
PodUID string `json:"podUID,omitempty"`
5153
}
5254

5355
// +kubebuilder:validation:Enum=Unprogrammed;Programming;Programmed;Unprogramming;Failed
@@ -105,6 +107,9 @@ type MultitenantPodNetworkConfigStatus struct {
105107
// DefaultDenyACL bool indicates whether default deny policy will be present on the pods upon pod creation
106108
// +kubebuilder:validation:Optional
107109
DefaultDenyACL bool `json:"defaultDenyACL"`
110+
// NodeName is the name of the node where the pod is scheduled
111+
// +kubebuilder:validation:Optional
112+
NodeName string `json:"nodeName,omitempty"`
108113
}
109114

110115
func init() {

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ spec:
7070
podNetworkInstance:
7171
description: name of PNI object from requesting cx pod
7272
type: string
73+
podUID:
74+
description: PodUID is the UID of the pod
75+
type: string
7376
required:
7477
- podNetwork
7578
type: object
@@ -135,6 +138,9 @@ spec:
135138
ncID:
136139
description: Deprecated - use InterfaceInfos
137140
type: string
141+
nodeName:
142+
description: NodeName is the name of the node where the pod is scheduled
143+
type: string
138144
primaryIP:
139145
description: Deprecated - use InterfaceInfos
140146
type: string

0 commit comments

Comments
 (0)