Issue a warning when variables reference themselves
Proposal
An edge case was found where using the same variable name, as the service
variable name, causes the service to fail. I am opening this issue to determine if there is room for a warning message when this happens.
variables:
NGINX_HTTP_PORT_NUMBER: 8181
services:
- name: bitnami/nginx
alias: nginx
variables:
NGINX_HTTP_PORT_NUMBER: ${NGINX_HTTP_PORT_NUMBER}
In this case, the service failed to start. Changing the name causes it to start correctly. In addition to the service failing to start, we could issue a warning when the variable references itself.