This becomes more interesting because of placement directives where you specify an application.
I do wonder if anyone actually relies on the behaviour of "use the last placement directive" for extra units.
There are two primary places where this is actually useful: "lxd:new" and "appname". This means put new units in lxd containers on new machines, and colocate with another application.
Changing this would be a breaking change in the current behaviour, not something we want to do in 2.x. Perhaps a more interesting thing would be some validator to run over the bundle where you could specify the strictness.
Oh, I didn't realise that it was a bundle issue.
This becomes more interesting because of placement directives where you specify an application.
I do wonder if anyone actually relies on the behaviour of "use the last placement directive" for extra units.
There are two primary places where this is actually useful: "lxd:new" and "appname". This means put new units in lxd containers on new machines, and colocate with another application.
Changing this would be a breaking change in the current behaviour, not something we want to do in 2.x. Perhaps a more interesting thing would be some validator to run over the bundle where you could specify the strictness.