From aa295a88128320d665579246d81e8749b3f00d49 Mon Sep 17 00:00:00 2001 From: mamutmk5 <3045922+mamutmk5@users.noreply.github.com> Date: Mon, 30 Sep 2024 09:38:52 +0200 Subject: [PATCH] BC-5112 - add Annotations to deployment for Restart (#20) --- ansible/roles/tldraw-server/templates/deployment.yml.j2 | 6 ++++++ .../roles/tldraw-server/templates/worker-deployment.yml.j2 | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/ansible/roles/tldraw-server/templates/deployment.yml.j2 b/ansible/roles/tldraw-server/templates/deployment.yml.j2 index 2a28ce7c..f843625a 100644 --- a/ansible/roles/tldraw-server/templates/deployment.yml.j2 +++ b/ansible/roles/tldraw-server/templates/deployment.yml.j2 @@ -3,6 +3,12 @@ kind: Deployment metadata: name: tldraw-server-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: tldraw-server app.kubernetes.io/part-of: schulcloud-verbund diff --git a/ansible/roles/tldraw-server/templates/worker-deployment.yml.j2 b/ansible/roles/tldraw-server/templates/worker-deployment.yml.j2 index 075f305f..0a67301d 100644 --- a/ansible/roles/tldraw-server/templates/worker-deployment.yml.j2 +++ b/ansible/roles/tldraw-server/templates/worker-deployment.yml.j2 @@ -3,6 +3,12 @@ kind: Deployment metadata: name: tldraw-worker-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: tldraw-server-worker app.kubernetes.io/part-of: schulcloud-verbund