Skip to content

Conversation

shreyashastantram
Copy link
Contributor

@shreyashastantram shreyashastantram commented Sep 30, 2025

Reason for Change:

This PR focuses on extending the mtpnc spec and status fields to include the Pod UID in the spec and the Node name in the status.

Pod UID is added to the spec because controllers are aware of the pod’s unique identifier at the time of mtpnc creation.
Node name is added to the status because scheduling decisions do not depend on the node name parameter. The node name becomes available only after the scheduling decision has been made.
If Node name were part of the spec, it would act as an optional input from the creator of the mtpnc. This could lead to inconsistent states—for example, if the creator specifies a node name that differs from the actual node where the pod is scheduled.

Issue Fixed:

Requirements:

Notes:

@shreyashastantram shreyashastantram marked this pull request as ready for review October 2, 2025 21:33
@shreyashastantram shreyashastantram requested a review from a team as a code owner October 2, 2025 21:33
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR extends the MultiTenantPodNetworkConfig (MTPNC) CRD to include additional pod-related fields for better tracking and management. The changes add pod metadata to both the specification and status sections of the CRD.

  • Adds PodUID field to the MTPNC spec for pod identification
  • Adds NodeName field to the MTPNC status for tracking pod placement

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
crd/multitenancy/manifests/multitenancy.acn.azure.com_multitenantpodnetworkconfigs.yaml Updates CRD manifest to include new podUID and nodeName fields
crd/multitenancy/api/v1alpha1/multitenantpodnetworkconfig.go Adds PodUID to spec struct and NodeName to status struct

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@shreyashastantram
Copy link
Contributor Author

/azp run Azure Container Networking PR

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@shreyashastantram shreyashastantram added this pull request to the merge queue Oct 10, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 11, 2025
@shreyashastantram shreyashastantram added this pull request to the merge queue Oct 13, 2025
@shreyashastantram shreyashastantram removed this pull request from the merge queue due to a manual request Oct 13, 2025
@shreyashastantram
Copy link
Contributor Author

/azp run Azure Container Networking PR

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants