bintocher opened a new pull request, #62284:
URL: https://github.com/apache/airflow/pull/62284

   ## Summary
   
   Fixes init container reconciliation in `PodGenerator.reconcile_specs()` to 
properly merge init containers by name instead of simply appending them. This 
aligns init container handling with the existing behavior for regular 
containers.
   
   ## Issue
   
   Fixes #61074
   
   ## Changes
   
   - Added `reconcile_init_containers()` method to merge init containers by 
name, matching the pattern used for regular containers
   - Updated `reconcile_specs()` to use the new method instead of 
`extend_object_field()`
   - For containers with matching names, lists like `volume_mounts`, `env`, 
`env_from`, `ports`, and `volume_devices` are extended; other properties are 
merged with client values taking precedence
   - Added unit test for init container reconciliation with same-name containers
   
   ## Testing
   
   - Added new test `test_reconcile_specs_init_containers_same_name` verifying 
that init containers with the same name are properly merged
   - Test confirms that client image overrides base image while base args are 
preserved


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to