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:
Σrebe - Romain GERARD
2021-06-22 14:51:25 +02:00
committed by Erèbe - Romain Gerard
parent e0c93ae7dc
commit f35a260f40
5 changed files with 13 additions and 0 deletions

View File

@@ -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:

View File

@@ -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 }}

View File

@@ -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:

View File

@@ -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 }}

View File

@@ -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();