I recently realized that to get a YTT substitution to work properly, I had to add this:
#@overlay/match by="name"
like so:
spec:
template:
spec:
containers:
#@overlay/match by="name"
- name: php-redis
#@overlay/match missing_ok=False
resources:
requests:
cpu: 200m
I was just wondering, why specifically, is this? It seems like ytt logically is overlaying new fields on top of old ones, so, shouldn't it be able to imply that we're matching to the map by its name, since this is the top field in the overlay stanza?