From 32d12736d22c7735efb3bfc370ba544b5758b8e1 Mon Sep 17 00:00:00 2001 From: mamutmk5 <3045922+mamutmk5@users.noreply.github.com> Date: Fri, 27 Sep 2024 10:47:39 +0200 Subject: [PATCH] BC-5112 - add Annotations to deployment for Restart --- .../roles/version-aggregator/templates/deployment.yml.j2 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ansible/roles/version-aggregator/templates/deployment.yml.j2 b/ansible/roles/version-aggregator/templates/deployment.yml.j2 index 9a3f4d4..668eecb 100644 --- a/ansible/roles/version-aggregator/templates/deployment.yml.j2 +++ b/ansible/roles/version-aggregator/templates/deployment.yml.j2 @@ -3,6 +3,12 @@ kind: Deployment metadata: name: version-aggregator-deployment namespace: {{ NAMESPACE }} +{% if ANNOTATIONS is defined and ANNOTATIONS|bool %} + annotations: +{% if RELOADER is defined and RELOADER|bool %} + reloader.stakater.com/auto: "true" +{% endif %} +{% endif %} labels: app: version-aggregator app.kubernetes.io/part-of: schulcloud-verbund