From 3e7bdff43ed58dabcb3919daafc83139c1dd3463 Mon Sep 17 00:00:00 2001
From: Tim Kreuzer <t.kreuzer@fz-juelich.de>
Date: Thu, 20 Mar 2025 14:40:25 +0100
Subject: [PATCH] update label for liveness check

---
 charts/jupyter-hub-customizations/Chart.yaml          |  2 +-
 .../templates/deployment_check_liveness.yaml          | 11 +++++++----
 2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/charts/jupyter-hub-customizations/Chart.yaml b/charts/jupyter-hub-customizations/Chart.yaml
index 3ce7d3b..2930996 100644
--- a/charts/jupyter-hub-customizations/Chart.yaml
+++ b/charts/jupyter-hub-customizations/Chart.yaml
@@ -15,7 +15,7 @@ type: application
 # This is the chart version. This version number should be incremented each time you make changes
 # to the chart and its templates, including the app version.
 # Versions are expected to follow Semantic Versioning (https://semver.org/)
-version: 0.16.20
+version: 0.16.21
 # This is the version number of the application being deployed. This version number should be
 # incremented each time you make changes to the application. Versions are not expected to
 # follow Semantic Versioning. They should reflect the version the application is using.
diff --git a/charts/jupyter-hub-customizations/templates/deployment_check_liveness.yaml b/charts/jupyter-hub-customizations/templates/deployment_check_liveness.yaml
index 953fe2e..f96ab18 100644
--- a/charts/jupyter-hub-customizations/templates/deployment_check_liveness.yaml
+++ b/charts/jupyter-hub-customizations/templates/deployment_check_liveness.yaml
@@ -4,18 +4,21 @@ kind: Deployment
 metadata:
   name: check-liveness
   labels:
-    app: {{ .Values.global.name }}
-    release: jupyterhub
+    app: jupyterhub
+    component: check-liveness
+    service: {{ .Values.global.name }}
     {{- include "jupyter-hub-customizations.labels" . | nindent 4 }}
 spec:
   replicas: 1
   selector:
     matchLabels:
-      app: check-liveness
+      app: jupyterhub
+      component: check-liveness
   template:
     metadata:
       labels:
-        app: check-liveness
+        app: jupyterhub
+        component: check-liveness
     spec:
       serviceAccountName: restart-deployment
       restartPolicy: Always
-- 
GitLab