From 47c2b3f6c5915dc64c13717681571a9a6363d699 Mon Sep 17 00:00:00 2001 From: Samuel Fernandes <45127751+samyuh@users.noreply.github.com> Date: Fri, 10 Jan 2025 20:28:24 +0000 Subject: [PATCH] fix: Change labels from 'jupyterhub.matchLabels' to 'jupyterhub.labels" --- 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 322bd70336..89ad970bf9 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.matchLabels" . | nindent 8 }} + {{- include "jupyterhub.labels" . | 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 16213b09be..03d524d3c3 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.matchLabels" . | nindent 8 }} + {{- include "jupyterhub.labels" . | 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 5509f13e50..4a13081550 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.matchLabels" . | nindent 8 }} + {{- include "jupyterhub.labels" . | 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 53e0736a6b..1189244865 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.matchLabels" . | nindent 8 }} + {{- include "jupyterhub.labels" . | 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 d5a987824d..c0701c19dd 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.matchLabels" . | nindent 8 }} + {{- include "jupyterhub.labels" . | 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 a68c52a679..84341e4d02 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.matchLabels" . | nindent 8 }} + {{- include "jupyterhub.labels" . | 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 e73c8ac688..bad99a7623 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.matchLabels" . | nindent 8 }} + {{- include "jupyterhub.labels" . | nindent 8 }} {{- with .Values.scheduling.userScheduler.labels }} {{- . | toYaml | nindent 8 }} {{- end }}