Skip to content

Conversation

@santhoshmprabhu
Copy link
Contributor

@santhoshmprabhu santhoshmprabhu commented Oct 8, 2024

Reason for Change:
This PR introduces a "fake NC" that we use to integrate IPs for NodeSubnet into the CNS code. The members in this "NC" except the secondary IPs are hard-coded. These NCs are used to populate the CNS state in two situations -

  1. A new set of IPs are retrieved from the NMAgent
  2. At startup, from the on-disk statefile.

In this PR, we have some of the APIs that will allow the 2 scenarios above to be implemented. Specifically, we have an API to create an NC request using a give list of secondary IPs, which will then be used to update the CNS state after a fetch from NMAgent. We also have an StateReconciler interface that creates functions for populating the CNS state from the on-disk statefile.

Issue Fixed:
NA

Requirements:

Notes:

@santhoshmprabhu santhoshmprabhu requested a review from a team as a code owner October 8, 2024 04:28
@santhoshmprabhu santhoshmprabhu self-assigned this Oct 8, 2024
@santhoshmprabhu santhoshmprabhu added the cns Related to CNS. label Oct 8, 2024
@santhoshmprabhu santhoshmprabhu changed the title Sanprabhu/cilium node subnet nc feat: create a dummy NC to store secondary IPs in nodesubnet deployments with Cilium Oct 8, 2024
@santhoshmprabhu santhoshmprabhu requested a review from rbtr October 8, 2024 16:36
@santhoshmprabhu
Copy link
Contributor Author

/azp run Azure Container Networking PR

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@santhoshmprabhu
Copy link
Contributor Author

/azp run Azure Container Networking PR

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@santhoshmprabhu
Copy link
Contributor Author

/azp run Azure Container Networking PR

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@santhoshmprabhu
Copy link
Contributor Author

/azp run Azure Container Networking PR

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@santhoshmprabhu
Copy link
Contributor Author

/azp run Azure Container Networking PR

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@santhoshmprabhu
Copy link
Contributor Author

/azp run Azure Container Networking PR

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@santhoshmprabhu
Copy link
Contributor Author

/azp run Azure Container Networking PR

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@santhoshmprabhu santhoshmprabhu added this pull request to the merge queue Oct 17, 2024
Merged via the queue into master with commit f91ab26 Oct 18, 2024
14 checks passed
@santhoshmprabhu santhoshmprabhu deleted the sanprabhu/cilium-node-subnet-nc branch October 18, 2024 02:51
sivakami-projects pushed a commit that referenced this pull request Oct 23, 2025
…nts with Cilium (#3057)

* WIP

* chore: first set of files for nodesubnet nc

* chore: add ipam reconciler interface

* feat: add ability to save fake nodesubnet nc

* fix: make linter happy, cleanup

* chore: cleanup

* fix: make linter happy

* fix: make linter happy

* fix: fix failing test

* refactor: remove public ipam reconciler interface

* fix: fix compile after unexporting interface

* refactor: break down IPAM reconciliation to address Evan's comment

* chore: fix comment

* fix:make linter happy

* fix: Address comments, add todo for Evan's feedback

* Address comments

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

Labels

cns Related to CNS.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants