From 19aaefa0b34e0870347f94ffcaa55cb4b3fb844e Mon Sep 17 00:00:00 2001 From: MartinSchuhmacher Date: Mon, 13 Nov 2023 14:27:13 +0100 Subject: [PATCH] add more common labels --- .../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 bc1e52c..b06345d 100644 --- a/ansible/roles/antivirus_check_service/templates/scanfile-deployment.yml.j2 +++ b/ansible/roles/antivirus_check_service/templates/scanfile-deployment.yml.j2 @@ -8,6 +8,9 @@ metadata: antivirus: scanfile app.kubernetes.io/part-of: schulcloud-verbund app.kubernetes.io/version: {{ ANTIVIRUS_CHECK_SERVICE_IMAGE_TAG }} + app.kubernetes.io/name: antivirus + app.kubernetes.io/component: scan + app.kubernetes.io/managed-by: ansible git.branch: {{ ANTIVIRUS_CHECK_SERVICE_BRANCH_NAME }} git.repo: {{ ANTIVIRUS_CHECK_SERVICE_REPO_NAME }} spec: @@ -30,6 +33,9 @@ spec: antivirus: scanfile app.kubernetes.io/part-of: schulcloud-verbund app.kubernetes.io/version: {{ ANTIVIRUS_CHECK_SERVICE_IMAGE_TAG }} + app.kubernetes.io/name: antivirus + app.kubernetes.io/component: scan + app.kubernetes.io/managed-by: ansible git.branch: {{ ANTIVIRUS_CHECK_SERVICE_BRANCH_NAME }} git.repo: {{ ANTIVIRUS_CHECK_SERVICE_REPO_NAME }} spec: 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 3764dba..6ee1d02 100644 --- a/ansible/roles/antivirus_check_service/templates/web-deployment.yml.j2 +++ b/ansible/roles/antivirus_check_service/templates/web-deployment.yml.j2 @@ -8,6 +8,9 @@ metadata: antivirus: webserver app.kubernetes.io/part-of: schulcloud-verbund app.kubernetes.io/version: {{ ANTIVIRUS_CHECK_SERVICE_IMAGE_TAG }} + app.kubernetes.io/name: antivirus + app.kubernetes.io/component: web + app.kubernetes.io/managed-by: ansible git.branch: {{ ANTIVIRUS_CHECK_SERVICE_BRANCH_NAME }} git.repo: {{ ANTIVIRUS_CHECK_SERVICE_REPO_NAME }} spec: @@ -30,6 +33,9 @@ spec: antivirus: webserver app.kubernetes.io/part-of: schulcloud-verbund app.kubernetes.io/version: {{ ANTIVIRUS_CHECK_SERVICE_IMAGE_TAG }} + app.kubernetes.io/name: antivirus + app.kubernetes.io/component: web + app.kubernetes.io/managed-by: ansible git.branch: {{ ANTIVIRUS_CHECK_SERVICE_BRANCH_NAME }} git.repo: {{ ANTIVIRUS_CHECK_SERVICE_REPO_NAME }} spec: