Skip to content

Conversation

@rejain789
Copy link
Contributor

@rejain789 rejain789 commented Nov 11, 2025

Reason for Change:

Backporting subnet overlay expansion to v1.6

Issue Fixed:

Requirements:

Notes:

@rejain789 rejain789 requested a review from a team as a code owner November 11, 2025 23:20
Copilot finished reviewing on behalf of rejain789 November 11, 2025 23:23
Copy link
Contributor

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 backports a bug fix for the CNS Overlay Expansion Subnet Update Job to v1.6. The fix enables CNS to accept network container subnet expansions by validating whether a new subnet is a superset of the existing subnet, rather than failing when any subnet change is detected.

Key Changes:

  • Added subnet superset validation logic to allow overlay subnet expansion scenarios
  • Enhanced test coverage with multiple test cases for both valid and invalid subnet changes
  • Refactored tests to use table-driven test patterns

Reviewed Changes

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

File Description
cns/restserver/internalapi.go Added conditional logic to validate if new subnet is a superset of existing subnet before rejecting NC updates
cns/restserver/internalapi_test.go Converted single test case to table-driven tests and added new test function for valid subnet expansion scenarios

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@rejain789
Copy link
Contributor Author

/azp run Azure Container Networking PR

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@thatmattlong thatmattlong added this pull request to the merge queue Nov 12, 2025
Any commits made after this event will not be merged.
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.

3 participants