Skip to content

Commit 076d80c

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 <175728472+Copilot@users.noreply.github.com> Signed-off-by: shreyashastantram <105284415+shreyashastantram@users.noreply.github.com> * 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> --------- Signed-off-by: shreyashastantram <105284415+shreyashastantram@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 692e1e4 commit 076d80c

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

crd/multitenancy/api/v1alpha1/multitenantpodnetworkconfig.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ type MultitenantPodNetworkConfigSpec struct {
4545
PodNetwork string `json:"podNetwork"`
4646
// name of the requesting cx pod
4747
PodName string `json:"podName,omitempty"`
48+
// MAC addresses of the IB devices to use for a pod
49+
// +kubebuilder:validation:Optional
50+
IBMACAddresses []string `json:"IBMACAddresses,omitempty"`
51+
// PodUID is the UID of the pod
52+
PodUID string `json:"podUID,omitempty"`
4853
}
4954

5055
type InterfaceInfo struct {
@@ -88,6 +93,9 @@ type MultitenantPodNetworkConfigStatus struct {
8893
// DefaultDenyACL bool indicates whether default deny policy will be present on the pods upon pod creation
8994
// +kubebuilder:validation:Optional
9095
DefaultDenyACL bool `json:"defaultDenyACL"`
96+
// NodeName is the name of the node where the pod is scheduled
97+
// +kubebuilder:validation:Optional
98+
NodeName string `json:"nodeName,omitempty"`
9199
}
92100

93101
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
@@ -65,6 +65,9 @@ spec:
6565
podNetworkInstance:
6666
description: name of PNI object from requesting cx pod
6767
type: string
68+
podUID:
69+
description: PodUID is the UID of the pod
70+
type: string
6871
required:
6972
- podNetwork
7073
type: object
@@ -120,6 +123,9 @@ spec:
120123
ncID:
121124
description: Deprecated - use InterfaceInfos
122125
type: string
126+
nodeName:
127+
description: NodeName is the name of the node where the pod is scheduled
128+
type: string
123129
primaryIP:
124130
description: Deprecated - use InterfaceInfos
125131
type: string

0 commit comments

Comments
 (0)