diff --git a/resources/helm/dask-gateway/templates/_helpers.tpl b/resources/helm/dask-gateway/templates/_helpers.tpl index 9273e580..328ceb6b 100644 --- a/resources/helm/dask-gateway/templates/_helpers.tpl +++ b/resources/helm/dask-gateway/templates/_helpers.tpl @@ -43,3 +43,12 @@ app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} {{- end }} app.kubernetes.io/managed-by: {{ .Release.Service }} {{- end -}} + +{{/* +Match labels +*/}} +{{- define "dask-gateway.matchLabels" -}} +app.kubernetes.io/name: {{ include "dask-gateway.name" . }} +app.kubernetes.io/instance: {{ .Release.Name }} +app.kubernetes.io/managed-by: {{ .Release.Service }} +{{- end -}} diff --git a/resources/helm/dask-gateway/templates/gateway-deployment.yaml b/resources/helm/dask-gateway/templates/gateway-deployment.yaml index 14a79301..60689b85 100644 --- a/resources/helm/dask-gateway/templates/gateway-deployment.yaml +++ b/resources/helm/dask-gateway/templates/gateway-deployment.yaml @@ -12,7 +12,7 @@ spec: replicas: 1 selector: matchLabels: - {{- include "dask-gateway.labels" . | nindent 6 }} + {{- include "dask-gateway.matchLabels" . | nindent 6 }} app.kubernetes.io/component: gateway template: metadata: diff --git a/resources/helm/dask-gateway/templates/scheduler-proxy-deployment.yaml b/resources/helm/dask-gateway/templates/scheduler-proxy-deployment.yaml index 43376001..2153f4d9 100644 --- a/resources/helm/dask-gateway/templates/scheduler-proxy-deployment.yaml +++ b/resources/helm/dask-gateway/templates/scheduler-proxy-deployment.yaml @@ -12,7 +12,7 @@ spec: replicas: 1 selector: matchLabels: - {{- include "dask-gateway.labels" . | nindent 6 }} + {{- include "dask-gateway.matchLabels" . | nindent 6 }} app.kubernetes.io/component: scheduler-proxy template: metadata: diff --git a/resources/helm/dask-gateway/templates/web-proxy-deployment.yaml b/resources/helm/dask-gateway/templates/web-proxy-deployment.yaml index bef1654f..d2299d08 100644 --- a/resources/helm/dask-gateway/templates/web-proxy-deployment.yaml +++ b/resources/helm/dask-gateway/templates/web-proxy-deployment.yaml @@ -12,7 +12,7 @@ spec: replicas: 1 selector: matchLabels: - {{- include "dask-gateway.labels" . | nindent 6 }} + {{- include "dask-gateway.matchLabels" . | nindent 6 }} app.kubernetes.io/component: web-proxy template: metadata: