azure-container-networking/crd/nodenetworkconfig
Ashish Nair a61940dbde
feat: Consume the NCStatus to be able to append subnet is full error to Pod IP reservation failures (#2202)
* Added Network Conatiner Status to include the latest error code for a Network Container

* Updated the crd to have the Status field included into the Network Container

* Updated the names and added Status and ErrorText as two fields in NC Status

* Fixed the casing and json values for these variables

* Propagated the NC Status inside the CNS and IPAM Monitor pool states

* Fixed the lint error of missing comma

* Saved the updated NC Status into the CNS statefile

* Updated the IP assignment to check and error out subnet is Full when there are no more available IPs for CNS to assign

* Fixed a minor compilation issue

* Fixed lint failures

* Fixed lint failures

* Removed the reference from the metastate of the ipam monitor

* Added Update Success and Update Failed statuses to the NC Status to be able to clearly indicate response status inside the NNC from DNC-RC

* Updated the error to use errors pkg instead of fmt

* Updating the cns reconcillation logic to skip if there is a failure updating the NC and there are no IPs allocated for the NC

* Handled PR comments:
* Updated the code to have the NC status be part of the error directly so that it can be consumed by containerD
 and cx can perform actions on it.
 * Code update to not use dynamic slices.
 * Removed the logic which handled 0 IPs allocated to NNC in CNS reconcile

Signed-off-by: GitHub <noreply@github.com>

* Addressed the PR comment which helped delete a block of code to store ncIDs and also added more error codes to the NCStatus

---------

Signed-off-by: GitHub <noreply@github.com>
2023-09-22 02:50:29 +00:00
..
api/v1alpha feat: Consume the NCStatus to be able to append subnet is full error to Pod IP reservation failures (#2202) 2023-09-22 02:50:29 +00:00
manifests feat: Consume the NCStatus to be able to append subnet is full error to Pod IP reservation failures (#2202) 2023-09-22 02:50:29 +00:00
Makefile deps: bump sigs.k8s.io/controller-tools from 0.11.1 to 0.11.2 in /build/tools (#1776) 2023-02-04 00:33:54 +00:00
client.go deprecate SetOwnerRef in favor of SetControllerRef (#1801) 2023-02-23 23:47:47 +00:00
embed.go Create NNC scoped client and isolate ipampoolmonitor and NNC reconciler (#1006) 2021-10-07 11:55:09 -05:00
embed_test.go Create NNC scoped client and isolate ipampoolmonitor and NNC reconciler (#1006) 2021-10-07 11:55:09 -05:00
json.go Create NNC scoped client and isolate ipampoolmonitor and NNC reconciler (#1006) 2021-10-07 11:55:09 -05:00
json_test.go Create NNC scoped client and isolate ipampoolmonitor and NNC reconciler (#1006) 2021-10-07 11:55:09 -05:00