Skip to content

Commit

Permalink
fix: Issue ray-project#1391 - Custom labels not being pulled in
Browse files Browse the repository at this point in the history
  • Loading branch information
rxraghu committed Sep 6, 2023
1 parent 9382c1f commit 0574ce0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
11 changes: 11 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,10 @@ metadata:
name: {{ .Values.name }}
labels:
{{ include "kuberay-apiserver.labels" . | indent 4 }}
{{ include "kuberay-apiserver.labels" . | indent 4 }}
{{- if .Values.labels }}
{{- toYaml .Values.labels | nindent 4 }}
{{- end }}
spec:
selector:
matchLabels:
Expand All @@ -15,6 +19,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 0574ce0

Please sign in to comment.