Skip to content

Commit

Permalink
fix: Issue ray-project#1391 - Custom labels not being pulled in (ray-…
Browse files Browse the repository at this point in the history
…project#1398)

fix: Issue ray-project#1391 - Custom labels not being pulled in
  • Loading branch information
rxraghu authored Sep 8, 2023
1 parent 49700f6 commit 2bcc2fb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
10 changes: 10 additions & 0 deletions helm-chart/kuberay-apiserver/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions helm-chart/kuberay-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2bcc2fb

Please sign in to comment.