ferruzzi commented on issue #35490:
URL: https://github.com/apache/airflow/issues/35490#issuecomment-1836785447

   I think tags should be additive.... AFAIK it will always be a list of len(1) 
and we should have an order of precedence; just tags[0]update() it so they get 
appended or overridden as expected seems reasonable to me.  I think that's a 
pretty straightforward solution and aligns with how we handle tags elsewhere.
   
   I'm pretty sure the container_overrides is the same and there can only be 
one container (for now?) so it would only ever be a len(1) list? In which case 
I like your solution.  If I'm mistaken, then the issue becomes how can we 
identify the container?  In your example above, **if** it is possible to have 
multiple containers, there is no indication about which container is being 
referenced so I don't think we can make that call.  We can't assume that 
list[0] is always the same container if there is no container id stored to 
verify it.  If there can only be one container then I don't see the issue with 
how we handle it everywhere else; set an order of precedence and update() up 
the chain to override or append as necessary.
   
   I definitely agree that I wouldn't want an explicit config option for every 
possible field.  Since we don't have any control over the boto API and don't 
get any kind of prior warning to changes they might make, we'll be stuck 
chasing it any time they decide to make a change.  I suppose the flip side of 
that is that we're just passing the buck to the users instead, but as Niko 
mentioned it's how we handle it elsewhere so there's precedent.


-- 
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: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to