diff --git a/ansible/host_vars/brb_host/cfg.yml b/ansible/host_vars/brb_host/cfg.yml index 97e138b38..3be9f4793 100644 --- a/ansible/host_vars/brb_host/cfg.yml +++ b/ansible/host_vars/brb_host/cfg.yml @@ -1,4 +1,6 @@ NEXTCLOUD_REDIRECT_URL: https://nextcloud-brb.dbildungscloud.dev/apps/files/?dir=/ NEXTCLOUD_BASE_URL: https://nextcloud-brb.dbildungscloud.dev/ BETTERMARKS_APPS_URL: "https://apps.bettermarks.brb.dbildungscloud.dev" -BETTERMARKS_SCHOOL_URL: "https://school.bettermarks.brb.dbildungscloud.dev" \ No newline at end of file +BETTERMARKS_SCHOOL_URL: "https://school.bettermarks.brb.dbildungscloud.dev" +ANNOTATIONS: true +RELOADER: true diff --git a/ansible/roles/clamav/templates/deployment.yml.j2 b/ansible/roles/clamav/templates/deployment.yml.j2 index f0ef7a0d1..5d05bebea 100644 --- a/ansible/roles/clamav/templates/deployment.yml.j2 +++ b/ansible/roles/clamav/templates/deployment.yml.j2 @@ -3,6 +3,12 @@ kind: Deployment metadata: name: clamav-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: clamav app.kubernetes.io/part-of: schulcloud-verbund diff --git a/ansible/roles/clammit/templates/deployment.yml.j2 b/ansible/roles/clammit/templates/deployment.yml.j2 index c83827fc3..84f4b7988 100644 --- a/ansible/roles/clammit/templates/deployment.yml.j2 +++ b/ansible/roles/clammit/templates/deployment.yml.j2 @@ -3,6 +3,12 @@ kind: Deployment metadata: name: clammit-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: clammit app.kubernetes.io/part-of: schulcloud-verbund diff --git a/ansible/roles/dof_etherpad/templates/deployment.yml.j2 b/ansible/roles/dof_etherpad/templates/deployment.yml.j2 index d8afd2969..c8fbb0974 100644 --- a/ansible/roles/dof_etherpad/templates/deployment.yml.j2 +++ b/ansible/roles/dof_etherpad/templates/deployment.yml.j2 @@ -3,6 +3,12 @@ kind: Deployment metadata: name: etherpad-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: etherpad app.kubernetes.io/part-of: schulcloud-verbund diff --git a/ansible/roles/dof_etherpad_nginx/templates/deployment.yml.j2 b/ansible/roles/dof_etherpad_nginx/templates/deployment.yml.j2 index cb820284b..b913096c9 100644 --- a/ansible/roles/dof_etherpad_nginx/templates/deployment.yml.j2 +++ b/ansible/roles/dof_etherpad_nginx/templates/deployment.yml.j2 @@ -3,6 +3,12 @@ kind: Deployment metadata: name: etherpad-nginx-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: etherpad-nginx app.kubernetes.io/part-of: schulcloud-verbund diff --git a/ansible/roles/dof_mailcatcher/templates/deployment.yml.j2 b/ansible/roles/dof_mailcatcher/templates/deployment.yml.j2 index 6e70048ad..57a2763a9 100644 --- a/ansible/roles/dof_mailcatcher/templates/deployment.yml.j2 +++ b/ansible/roles/dof_mailcatcher/templates/deployment.yml.j2 @@ -4,6 +4,12 @@ kind: Deployment metadata: name: mailcatcher-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: mailcatcher app.kubernetes.io/part-of: schulcloud-verbund diff --git a/ansible/roles/dof_mongo/templates/deployment.yml.j2 b/ansible/roles/dof_mongo/templates/deployment.yml.j2 index 8f5b2d0df..0170f9894 100644 --- a/ansible/roles/dof_mongo/templates/deployment.yml.j2 +++ b/ansible/roles/dof_mongo/templates/deployment.yml.j2 @@ -4,6 +4,12 @@ kind: Deployment metadata: name: mongo-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: mongo app.kubernetes.io/part-of: schulcloud-verbund diff --git a/ansible/roles/dof_postgresql/templates/deployment.yml.j2 b/ansible/roles/dof_postgresql/templates/deployment.yml.j2 index e00f625c6..8b44c1a17 100644 --- a/ansible/roles/dof_postgresql/templates/deployment.yml.j2 +++ b/ansible/roles/dof_postgresql/templates/deployment.yml.j2 @@ -3,6 +3,12 @@ kind: Deployment metadata: name: postgres-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: postgres app.kubernetes.io/part-of: schulcloud-verbund diff --git a/ansible/roles/dof_redis/templates/deployment.yml.j2 b/ansible/roles/dof_redis/templates/deployment.yml.j2 index 021ba9467..c2242dbbf 100644 --- a/ansible/roles/dof_redis/templates/deployment.yml.j2 +++ b/ansible/roles/dof_redis/templates/deployment.yml.j2 @@ -4,6 +4,12 @@ kind: Deployment metadata: name: redis-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: redis app.kubernetes.io/part-of: schulcloud-verbund diff --git a/ansible/roles/erwin-idm/templates/deployment.yml.j2 b/ansible/roles/erwin-idm/templates/deployment.yml.j2 index acae6bedd..ea841322b 100644 --- a/ansible/roles/erwin-idm/templates/deployment.yml.j2 +++ b/ansible/roles/erwin-idm/templates/deployment.yml.j2 @@ -4,6 +4,12 @@ kind: Deployment metadata: name: erwinidm-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: erwinidm app.kubernetes.io/part-of: schulcloud-verbund diff --git a/ansible/roles/h5p-proxy/templates/api-h5p-proxy-deployment.yml.j2 b/ansible/roles/h5p-proxy/templates/api-h5p-proxy-deployment.yml.j2 index 9e286177f..3438ee6ad 100644 --- a/ansible/roles/h5p-proxy/templates/api-h5p-proxy-deployment.yml.j2 +++ b/ansible/roles/h5p-proxy/templates/api-h5p-proxy-deployment.yml.j2 @@ -3,6 +3,12 @@ kind: Deployment metadata: name: api-h5p-proxy-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: api-h5p-proxy app.kubernetes.io/part-of: schulcloud-verbund diff --git a/ansible/roles/hydra/templates/deployment.yml.j2 b/ansible/roles/hydra/templates/deployment.yml.j2 index 452c27bfa..ad6323b9e 100644 --- a/ansible/roles/hydra/templates/deployment.yml.j2 +++ b/ansible/roles/hydra/templates/deployment.yml.j2 @@ -3,6 +3,12 @@ kind: Deployment metadata: name: hydra-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: hydra app.kubernetes.io/part-of: schulcloud-verbund diff --git a/ansible/roles/ingress/templates/default-backend-404-deployment.yml.j2 b/ansible/roles/ingress/templates/default-backend-404-deployment.yml.j2 index a034272c6..6373a773b 100644 --- a/ansible/roles/ingress/templates/default-backend-404-deployment.yml.j2 +++ b/ansible/roles/ingress/templates/default-backend-404-deployment.yml.j2 @@ -3,6 +3,12 @@ kind: Deployment metadata: name: default-backend-404-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: default-backend-404 app.kubernetes.io/part-of: schulcloud-verbund diff --git a/ansible/roles/libreoffice/templates/deployment.yml.j2 b/ansible/roles/libreoffice/templates/deployment.yml.j2 index aa3965d79..7cd8c96dd 100644 --- a/ansible/roles/libreoffice/templates/deployment.yml.j2 +++ b/ansible/roles/libreoffice/templates/deployment.yml.j2 @@ -3,6 +3,12 @@ kind: Deployment metadata: name: libreoffice-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: libreoffice app.kubernetes.io/part-of: schulcloud-verbund diff --git a/ansible/roles/maildrop/templates/deployment.yml.j2 b/ansible/roles/maildrop/templates/deployment.yml.j2 index 30df51de4..b2a2e2147 100644 --- a/ansible/roles/maildrop/templates/deployment.yml.j2 +++ b/ansible/roles/maildrop/templates/deployment.yml.j2 @@ -4,6 +4,12 @@ kind: Deployment metadata: name: maildrop-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: maildrop app.kubernetes.io/part-of: schulcloud-verbund diff --git a/ansible/roles/oidcmock/templates/deployment.yml.j2 b/ansible/roles/oidcmock/templates/deployment.yml.j2 index 38a9e5fa4..6ea02d4e7 100644 --- a/ansible/roles/oidcmock/templates/deployment.yml.j2 +++ b/ansible/roles/oidcmock/templates/deployment.yml.j2 @@ -4,6 +4,12 @@ kind: Deployment metadata: name: oidcmock-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: oidcmock app.kubernetes.io/part-of: schulcloud-verbund diff --git a/ansible/roles/rocketchat/templates/deployment.yml.j2 b/ansible/roles/rocketchat/templates/deployment.yml.j2 index 68ca99ac9..dcdc83f3e 100644 --- a/ansible/roles/rocketchat/templates/deployment.yml.j2 +++ b/ansible/roles/rocketchat/templates/deployment.yml.j2 @@ -3,6 +3,12 @@ kind: Deployment metadata: name: rocketchat-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: rocketchat app.kubernetes.io/part-of: schulcloud-verbund diff --git a/ansible/roles/storage/templates/deployment.yml.j2 b/ansible/roles/storage/templates/deployment.yml.j2 index 768280bc7..69b4788db 100644 --- a/ansible/roles/storage/templates/deployment.yml.j2 +++ b/ansible/roles/storage/templates/deployment.yml.j2 @@ -4,6 +4,12 @@ kind: Deployment metadata: name: storage-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: storage app.kubernetes.io/part-of: schulcloud-verbund