From 4d2304a91f7aa23095df8154f0810be8820256b0 Mon Sep 17 00:00:00 2001 From: mamutmk5 <3045922+mamutmk5@users.noreply.github.com> Date: Mon, 30 Sep 2024 09:30:18 +0200 Subject: [PATCH] BC-5112 - add Annotations to deployment for Restart (#3527) --- .../schulcloud-client-core/templates/deployment.yml.j2 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ansible/roles/schulcloud-client-core/templates/deployment.yml.j2 b/ansible/roles/schulcloud-client-core/templates/deployment.yml.j2 index 8c74a71506..1f446bce7f 100644 --- a/ansible/roles/schulcloud-client-core/templates/deployment.yml.j2 +++ b/ansible/roles/schulcloud-client-core/templates/deployment.yml.j2 @@ -3,6 +3,12 @@ kind: Deployment metadata: name: client-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: client app.kubernetes.io/part-of: schulcloud-verbund