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