change module type per env?
# 🌱|help-and-getting-started
k
Is there a way to change a particular module's type and all the corresponding config based on the env it's being deployed to? In the specific example I'm trying to figure out it's a module named db where we would want to use a helm chart in one env and just a simple container in a different one.
c
Hi @kind-france-89777 ! You can try to keep both modules and disable them conditionally, on the basis of env. Please, take a look at this guide: https://docs.garden.io/using-garden/modules#disabling-modules The module names and service/task/test names must be unique.
k
the unique names thing makes that sort of challenging as a solution
how would I handle needing to have this varying module as a dependency, then?
hm. I guess it just ignores dependencies that are disabled, so I guess I just would have to have unique names and have them all as dependencies
c
Ah, yes, it can ignore the disabled modules. Please try it out. If it doesn't work, please let us know. I'll be on vacation starting tomorrow, and will come back on Jan 9th