From 4c2cc4512f7d95a696fbd864a47a438b1a27b78d Mon Sep 17 00:00:00 2001 From: Nandakumar Raghu <144114275+rxraghu@users.noreply.github.com> Date: Fri, 8 Sep 2023 20:12:45 +0200 Subject: [PATCH] fix: Issue #1391 - Custom labels not being pulled in (#1398) fix: Issue #1391 - Custom labels not being pulled in --- helm-chart/kuberay-apiserver/templates/deployment.yaml | 10 ++++++++++ helm-chart/kuberay-operator/templates/deployment.yaml | 3 +++ 2 files changed, 13 insertions(+) diff --git a/helm-chart/kuberay-apiserver/templates/deployment.yaml b/helm-chart/kuberay-apiserver/templates/deployment.yaml index 956738c1a0..6edad56c6d 100644 --- a/helm-chart/kuberay-apiserver/templates/deployment.yaml +++ b/helm-chart/kuberay-apiserver/templates/deployment.yaml @@ -4,6 +4,9 @@ metadata: name: {{ .Values.name }} labels: {{ include "kuberay-apiserver.labels" . | indent 4 }} +{{- if .Values.labels }} +{{- toYaml .Values.labels | nindent 4 }} +{{- end }} spec: selector: matchLabels: @@ -15,6 +18,13 @@ spec: labels: app.kubernetes.io/component: {{ include "kuberay-apiserver.name" . }} app.kubernetes.io/name: {{ .Release.Name }} + {{- if .Values.labels }} + {{- toYaml .Values.labels | nindent 8 }} + {{- end }} + {{- if .Values.annotations }} + annotations: + {{- toYaml .Values.annotations | nindent 8 }} + {{- end }} spec: serviceAccountName: {{ .Values.serviceAccount.name }} containers: diff --git a/helm-chart/kuberay-operator/templates/deployment.yaml b/helm-chart/kuberay-operator/templates/deployment.yaml index fa9b4c1a9c..d88d001453 100644 --- a/helm-chart/kuberay-operator/templates/deployment.yaml +++ b/helm-chart/kuberay-operator/templates/deployment.yaml @@ -4,6 +4,9 @@ metadata: name: {{ include "kuberay-operator.fullname" . }} labels: {{ include "kuberay-operator.labels" . | indent 4 }} +{{- if .Values.labels }} +{{- toYaml .Values.labels | nindent 4 }} +{{- end }} spec: replicas: 1 strategy: