rancher / community-catalog

Catalog entries contributed by the community
385 stars 641 forks source link

Are best practices docs accurate regarding templating? #816

Open cranium opened 6 years ago

cranium commented 6 years ago

https://github.com/rancher/community-catalog/wiki/Best-practices

On this page - the example has you using go templating to have a db service that may or may not be setup, but in the rancher compose file, there is a static entry for db. When I do this locally on rancher 1.6 I get an error because the rancher-compose file is referencing a service that doesn't exist.

image

Am I missing something?

I'd like to use go templating to conditionally include a service based on questions in rancher compose, and have rancher compose entries for those services if they are included.