From f244f70e23e647d76e9bb23aa432eea1ea391bb8 Mon Sep 17 00:00:00 2001 From: MartinSchuhmacher Date: Wed, 8 Nov 2023 14:43:04 +0100 Subject: [PATCH] restructure labels --- .../templates/deployment.yml.j2 | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/ansible/roles/schulcloud-server-core/templates/deployment.yml.j2 b/ansible/roles/schulcloud-server-core/templates/deployment.yml.j2 index 467cbc964d2..25da61c3213 100644 --- a/ansible/roles/schulcloud-server-core/templates/deployment.yml.j2 +++ b/ansible/roles/schulcloud-server-core/templates/deployment.yml.j2 @@ -5,8 +5,10 @@ metadata: namespace: {{ NAMESPACE }} labels: app: api - app.kubernetes.io/managed-by: {{ SCHULCLOUD_SERVER_BRANCH_NAME }} - app.kubernetes.io/part-of: {{ SCHULCLOUD_SERVER_REPO_NAME }} + app.kubernetes.io/part-of: schulcloud-verbund + app.kubernetes.io/version: {{ SCHULCLOUD_SERVER_IMAGE_TAG }} + git.branch: {{ SCHULCLOUD_SERVER_BRANCH_NAME }} + git.repo: {{ SCHULCLOUD_SERVER_REPO_NAME }} spec: replicas: {{ API_REPLICAS|default("1", true) }} strategy: @@ -23,8 +25,10 @@ spec: metadata: labels: app: api - app.kubernetes.io/managed-by: {{ SCHULCLOUD_SERVER_BRANCH_NAME }} - app.kubernetes.io/part-of: {{ SCHULCLOUD_SERVER_REPO_NAME }} + app.kubernetes.io/part-of: schulcloud-verbund + app.kubernetes.io/version: {{ SCHULCLOUD_SERVER_IMAGE_TAG }} + git.branch: {{ SCHULCLOUD_SERVER_BRANCH_NAME }} + git.repo: {{ SCHULCLOUD_SERVER_REPO_NAME }} spec: securityContext: runAsUser: 1000