Hey guys. Is there any built-in strategy to switch...
# getting-started
m
Hey guys. Is there any built-in strategy to switch between providers? I have program that I'd like to deploy to cloud k8s on prod, and to minikube during dev. Simple if statement doesn't seems to work
r
Hi. Use stacks for each environment.
m
Hey. Thanks for answer. Unfortunately there is some differences between stacks. For example, If I deploy to minikube, I need just to import k8s.Provider(context: minikube) but if I want to deploy to OVH, I need to create k8s cluster first, get kubeconfig, and then export it as a k8s.Provider. It's fine, but If I'm deploying to minikube, I don't want to be asked about OVH secrets. I thought I'd just wrap OVH provider in simple if, and if stack === 'dev' I will not use it, but it still asks me for secrets
l
Hey Luna, can you share what your if condition that is failing looks like?