janhoy opened a new pull request, #915:
URL: https://github.com/apache/solr-operator/pull/915

   🤖 AI assisted 🤖
   
   Fixes #913
   
   Operators before v0.10 wrote the SolrCloud back with a full `Update`, which 
made them the sole owner of the init and sidecar container lists. #905 releases 
the operator's `managedFields` entry, but on a SolrCloud last written by 0.9.x 
that leaves these lists without an owner, so a server-side apply (Helm 4, 
ArgoCD) that leaves them out does not remove them.
   
   Before dropping its entry, `releaseFieldOwnership` now moves these lists 
into the field set of the object's `Apply` manager:
   
   - `podOptions.initContainers` and `podOptions.sidecarContainers`, on 
SolrCloud and SolrPrometheusExporter
   - the ZooKeeper pod policy's `initContainers` and `containers`
   
   A list is only moved if the operator is its sole owner and the object has 
exactly one `Apply` manager. Otherwise the entry is dropped as before. 
Defaulted fields such as `solrImage.tag` stay unowned, since handing them to 
the applier would let its next apply remove them and have the operator 
re-default them.
   
   - An envtest takes over the init container list the way 0.9.x did, and 
checks that a later Helm apply without it removes it. It fails without the fix.
   - A unit test covers the cases where nothing is handed back.
   - The #905 changelog entry is amended instead of adding a new one, since 
#905 is not released yet.
   - An upgrade note in the v0.10.0 section covers SolrClouds with more than 
one apply manager.
   
   This should be cherry-picked to `release-0.10` together with #905.
   


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to