diff --git a/lib/aws/charts/q-application/templates/deployment.j2.yaml b/lib/aws/charts/q-application/templates/deployment.j2.yaml index 9b4c1eda..f6dc0753 100644 --- a/lib/aws/charts/q-application/templates/deployment.j2.yaml +++ b/lib/aws/charts/q-application/templates/deployment.j2.yaml @@ -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: diff --git a/lib/aws/charts/q-application/templates/statefulset.j2.yaml b/lib/aws/charts/q-application/templates/statefulset.j2.yaml index 91dca00c..18d4ba46 100644 --- a/lib/aws/charts/q-application/templates/statefulset.j2.yaml +++ b/lib/aws/charts/q-application/templates/statefulset.j2.yaml @@ -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 }} diff --git a/lib/digitalocean/charts/q-application/templates/deployment.j2.yaml b/lib/digitalocean/charts/q-application/templates/deployment.j2.yaml index 9b4c1eda..f6dc0753 100644 --- a/lib/digitalocean/charts/q-application/templates/deployment.j2.yaml +++ b/lib/digitalocean/charts/q-application/templates/deployment.j2.yaml @@ -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: diff --git a/lib/digitalocean/charts/q-application/templates/statefulset.j2.yaml b/lib/digitalocean/charts/q-application/templates/statefulset.j2.yaml index 1e60ac52..0d3abb59 100644 --- a/lib/digitalocean/charts/q-application/templates/statefulset.j2.yaml +++ b/lib/digitalocean/charts/q-application/templates/statefulset.j2.yaml @@ -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 }} diff --git a/tests/aws/aws_environment.rs b/tests/aws/aws_environment.rs index 512f00ba..131f5564 100644 --- a/tests/aws/aws_environment.rs +++ b/tests/aws/aws_environment.rs @@ -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();