From 6c7787cc6dc5b329f2e83c27a99339f87cfd3116 Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Sun, 12 Jan 2025 15:58:49 +0100 Subject: [PATCH] Add modern labels alongside legacy labels to pods --- jupyterhub/templates/hub/deployment.yaml | 2 +- jupyterhub/templates/image-puller/_helpers-daemonset.tpl | 2 +- jupyterhub/templates/image-puller/job.yaml | 2 +- jupyterhub/templates/proxy/autohttps/deployment.yaml | 2 +- jupyterhub/templates/proxy/deployment.yaml | 2 +- .../templates/scheduling/user-placeholder/statefulset.yaml | 2 +- jupyterhub/templates/scheduling/user-scheduler/deployment.yaml | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/jupyterhub/templates/hub/deployment.yaml b/jupyterhub/templates/hub/deployment.yaml index 89ad970bf9..7da4809d96 100644 --- a/jupyterhub/templates/hub/deployment.yaml +++ b/jupyterhub/templates/hub/deployment.yaml @@ -18,7 +18,7 @@ spec: metadata: labels: {{- /* Changes here will cause the Deployment to restart the pods. */}} - {{- include "jupyterhub.labels" . | nindent 8 }} + {{- include "jupyterhub.matchLabelsLegacyAndModern" . | nindent 8 }} hub.jupyter.org/network-access-proxy-api: "true" hub.jupyter.org/network-access-proxy-http: "true" hub.jupyter.org/network-access-singleuser: "true" diff --git a/jupyterhub/templates/image-puller/_helpers-daemonset.tpl b/jupyterhub/templates/image-puller/_helpers-daemonset.tpl index 03d524d3c3..236852dc94 100644 --- a/jupyterhub/templates/image-puller/_helpers-daemonset.tpl +++ b/jupyterhub/templates/image-puller/_helpers-daemonset.tpl @@ -40,7 +40,7 @@ spec: template: metadata: labels: - {{- include "jupyterhub.labels" . | nindent 8 }} + {{- include "jupyterhub.matchLabelsLegacyAndModern" . | nindent 8 }} {{- with .Values.prePuller.annotations }} annotations: {{- . | toYaml | nindent 8 }} diff --git a/jupyterhub/templates/image-puller/job.yaml b/jupyterhub/templates/image-puller/job.yaml index 4a13081550..73fdf5384b 100644 --- a/jupyterhub/templates/image-puller/job.yaml +++ b/jupyterhub/templates/image-puller/job.yaml @@ -27,7 +27,7 @@ spec: metadata: labels: {{- /* Changes here will cause the Job to restart the pods. */}} - {{- include "jupyterhub.labels" . | nindent 8 }} + {{- include "jupyterhub.matchLabelsLegacyAndModern" . | nindent 8 }} {{- with .Values.prePuller.labels }} {{- . | toYaml | nindent 8 }} {{- end }} diff --git a/jupyterhub/templates/proxy/autohttps/deployment.yaml b/jupyterhub/templates/proxy/autohttps/deployment.yaml index 1189244865..4ffc633009 100644 --- a/jupyterhub/templates/proxy/autohttps/deployment.yaml +++ b/jupyterhub/templates/proxy/autohttps/deployment.yaml @@ -18,7 +18,7 @@ spec: template: metadata: labels: - {{- include "jupyterhub.labels" . | nindent 8 }} + {{- include "jupyterhub.matchLabelsLegacyAndModern" . | nindent 8 }} hub.jupyter.org/network-access-proxy-http: "true" {{- with .Values.proxy.traefik.labels }} {{- . | toYaml | nindent 8 }} diff --git a/jupyterhub/templates/proxy/deployment.yaml b/jupyterhub/templates/proxy/deployment.yaml index c0701c19dd..e15f640ab4 100644 --- a/jupyterhub/templates/proxy/deployment.yaml +++ b/jupyterhub/templates/proxy/deployment.yaml @@ -20,7 +20,7 @@ spec: metadata: labels: {{- /* Changes here will cause the Deployment to restart the pods. */}} - {{- include "jupyterhub.labels" . | nindent 8 }} + {{- include "jupyterhub.matchLabelsLegacyAndModern" . | nindent 8 }} hub.jupyter.org/network-access-hub: "true" hub.jupyter.org/network-access-singleuser: "true" {{- with .Values.proxy.labels }} diff --git a/jupyterhub/templates/scheduling/user-placeholder/statefulset.yaml b/jupyterhub/templates/scheduling/user-placeholder/statefulset.yaml index 84341e4d02..ebbb0026a2 100644 --- a/jupyterhub/templates/scheduling/user-placeholder/statefulset.yaml +++ b/jupyterhub/templates/scheduling/user-placeholder/statefulset.yaml @@ -32,7 +32,7 @@ spec: {{- end }} labels: {{- /* Changes here will cause the Deployment to restart the pods. */}} - {{- include "jupyterhub.labels" . | nindent 8 }} + {{- include "jupyterhub.matchLabelsLegacyAndModern" . | nindent 8 }} {{- with .Values.scheduling.userPlaceholder.labels }} {{- . | toYaml | nindent 8 }} {{- end }} diff --git a/jupyterhub/templates/scheduling/user-scheduler/deployment.yaml b/jupyterhub/templates/scheduling/user-scheduler/deployment.yaml index bad99a7623..c1875feb22 100644 --- a/jupyterhub/templates/scheduling/user-scheduler/deployment.yaml +++ b/jupyterhub/templates/scheduling/user-scheduler/deployment.yaml @@ -16,7 +16,7 @@ spec: template: metadata: labels: - {{- include "jupyterhub.labels" . | nindent 8 }} + {{- include "jupyterhub.matchLabelsLegacyAndModern" . | nindent 8 }} {{- with .Values.scheduling.userScheduler.labels }} {{- . | toYaml | nindent 8 }} {{- end }}