From 5ae9c1784fdaf224421332f436d646e837a42c3d Mon Sep 17 00:00:00 2001 From: mamutmk5 <3045922+mamutmk5@users.noreply.github.com> Date: Fri, 27 Sep 2024 10:46:53 +0200 Subject: [PATCH] BC-5112 - add Annotations to deployment for Restart --- ansible/roles/shd-client-core/templates/deployment.yml.j2 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ansible/roles/shd-client-core/templates/deployment.yml.j2 b/ansible/roles/shd-client-core/templates/deployment.yml.j2 index a820ded..2fb6c3e 100644 --- a/ansible/roles/shd-client-core/templates/deployment.yml.j2 +++ b/ansible/roles/shd-client-core/templates/deployment.yml.j2 @@ -3,6 +3,12 @@ kind: Deployment metadata: name: shd-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: shd-client app.kubernetes.io/part-of: schulcloud-verbund