mirror of
https://github.com/jlengrand/engine.git
synced 2026-03-10 08:11:21 +00:00
Allow having debug log for stateful app in non managed environments
This commit is contained in:
@@ -155,11 +155,17 @@ pub struct Resources {
|
||||
pub fn deploy_environment(kubernetes: &dyn Kubernetes, environment: &Environment) -> Result<(), EngineError> {
|
||||
let listeners_helper = ListenersHelper::new(kubernetes.listeners());
|
||||
|
||||
let stateful_deployment_target = match environment.kind {
|
||||
crate::cloud_provider::environment::Kind::Production => {
|
||||
DeploymentTarget::ManagedServices(kubernetes, environment)
|
||||
}
|
||||
crate::cloud_provider::environment::Kind::Development => DeploymentTarget::SelfHosted(kubernetes, environment),
|
||||
let stateful_deployment_target = match kubernetes.kind() {
|
||||
Kind::Eks => match environment.kind {
|
||||
crate::cloud_provider::environment::Kind::Production => {
|
||||
DeploymentTarget::ManagedServices(kubernetes, environment)
|
||||
}
|
||||
crate::cloud_provider::environment::Kind::Development => {
|
||||
DeploymentTarget::SelfHosted(kubernetes, environment)
|
||||
}
|
||||
},
|
||||
// FIXME: We don't have any managed service on DO for now
|
||||
Kind::Doks => DeploymentTarget::SelfHosted(kubernetes, environment),
|
||||
};
|
||||
|
||||
// do not deploy if there is not enough resources
|
||||
|
||||
Reference in New Issue
Block a user