Optionally, we could also have support for overriding templates:
pods/templates/webapp.yml
pods/targets/$TARGET/templates/webapp.yml
The trick would be to merge these two files before we use them as input to the extends. This would allow us to handle cases where we use one image in development, and a different image in production.
At the moment,
cage
really doesn't have any particularly good support forextends
.We could support this as follows:
Optionally, we could also have support for overriding templates:
pods/templates/webapp.yml
pods/targets/$TARGET/templates/webapp.yml
The trick would be to merge these two files before we use them as input to the
extends
. This would allow us to handle cases where we use oneimage
in development, and a differentimage
in production.