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