From b2f842f60da60dd488f25c691c496478bb426b9c Mon Sep 17 00:00:00 2001 From: mamutmk5 <3045922+mamutmk5@users.noreply.github.com> Date: Fri, 27 Sep 2024 10:47:14 +0200 Subject: [PATCH] BC-5112 - add Annotations to deployment for Restart --- .../templates/scanfile-deployment.yml.j2 | 6 ++++++ .../antivirus_check_service/templates/web-deployment.yml.j2 | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/ansible/roles/antivirus_check_service/templates/scanfile-deployment.yml.j2 b/ansible/roles/antivirus_check_service/templates/scanfile-deployment.yml.j2 index 307a2cc..6f86148 100644 --- a/ansible/roles/antivirus_check_service/templates/scanfile-deployment.yml.j2 +++ b/ansible/roles/antivirus_check_service/templates/scanfile-deployment.yml.j2 @@ -3,6 +3,12 @@ kind: Deployment metadata: name: antivirus-scanfile-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: antivirus antivirus: scanfile diff --git a/ansible/roles/antivirus_check_service/templates/web-deployment.yml.j2 b/ansible/roles/antivirus_check_service/templates/web-deployment.yml.j2 index 421f8e9..598fb08 100644 --- a/ansible/roles/antivirus_check_service/templates/web-deployment.yml.j2 +++ b/ansible/roles/antivirus_check_service/templates/web-deployment.yml.j2 @@ -3,6 +3,12 @@ kind: Deployment metadata: name: antivirus-webserver-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: antivirus antivirus: webserver