mirror of
https://github.com/jlengrand/engine.git
synced 2026-03-10 08:11:21 +00:00
Force deployment restart on helm upgrade
+ In order to implement restart, we want to force rollout even
if nothing changes in the deployment
+ CREATE action should be renamed DEPLOY to be more insightfull
This commit is contained in:
committed by
Erèbe - Romain Gerard
parent
e0c93ae7dc
commit
f35a260f40
@@ -10,6 +10,8 @@ metadata:
|
||||
envId: {{ environment_id }}
|
||||
appId: {{ id }}
|
||||
app: {{ sanitized_name }}
|
||||
annotations:
|
||||
releaseTime: {{ dateInZone "2006-01-02 15:04:05Z" (now) "UTC"| quote }}
|
||||
spec:
|
||||
replicas: {{ total_instances }}
|
||||
strategy:
|
||||
|
||||
@@ -10,6 +10,8 @@ metadata:
|
||||
envId: {{ environment_id }}
|
||||
appId: {{ id }}
|
||||
app: {{ sanitized_name }}
|
||||
annotations:
|
||||
releaseTime: {{ dateInZone "2006-01-02 15:04:05Z" (now) "UTC"| quote }}
|
||||
spec:
|
||||
replicas: {{ total_instances }}
|
||||
serviceName: {{ sanitized_name }}
|
||||
|
||||
@@ -10,6 +10,8 @@ metadata:
|
||||
envId: {{ environment_id }}
|
||||
appId: {{ id }}
|
||||
app: {{ sanitized_name }}
|
||||
annotations:
|
||||
releaseTime: {{ dateInZone "2006-01-02 15:04:05Z" (now) "UTC"| quote }}
|
||||
spec:
|
||||
replicas: {{ total_instances }}
|
||||
strategy:
|
||||
|
||||
@@ -10,6 +10,8 @@ metadata:
|
||||
envId: {{ environment_id }}
|
||||
appId: {{ id }}
|
||||
app: {{ sanitized_name }}
|
||||
annotations:
|
||||
releaseTime: {{ dateInZone "2006-01-02 15:04:05Z" (now) "UTC"| quote }}
|
||||
spec:
|
||||
replicas: {{ total_instances }}
|
||||
serviceName: {{ sanitized_name }}
|
||||
|
||||
@@ -27,6 +27,11 @@ use tracing::{span, Level};
|
||||
// (context_vec, env_vec)
|
||||
// }
|
||||
|
||||
|
||||
// TODO:
|
||||
// - Tests that applications are always restarted when recieving a CREATE action
|
||||
// see: https://github.com/Qovery/engine/pull/269
|
||||
|
||||
pub fn deploy_environment(context: &Context, environment_action: &EnvironmentAction) -> TransactionResult {
|
||||
let engine = test_utilities::aws::docker_ecr_aws_engine(&context);
|
||||
let session = engine.session().unwrap();
|
||||
|
||||
Reference in New Issue
Block a user