You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: set correct nadFound=true after NAD creation in updateConditions
After successfully creating a NetworkAttachmentDefinition, the controller
was incorrectly calling updateConditions with nadFound=false, which set
the status to 'waiting for namespace' instead of 'ready'.
This fix:
1. Changes nadFound from false to true after successful NAD creation
2. Changes err to nil (since there's no error on success)
3. Adds a unit test that specifically verifies conditions are set to
Ready=True immediately after NAD creation
The bug was reported by Gemini code review on PR k8snetworkplumbingwg#1010.
Signed-off-by: Sebastian Sch <sebassch@gmail.com>
0 commit comments