@@ -2,11 +2,12 @@ apiVersion: apps/v1
2
2
kind : Deployment
3
3
metadata :
4
4
name : {{ include "kuberay-operator.fullname" . }}
5
+ namespace : {{ .Release.Namespace }}
5
6
labels :
6
- {{ include "kuberay-operator.labels" . | indent 4 }}
7
- {{- if .Values.labels }}
8
- {{- toYaml .Values.labels | nindent 4 }}
9
- {{- end }}
7
+ {{- include "kuberay-operator.labels" . | nindent 4 }}
8
+ {{- with .Values.labels }}
9
+ {{- toYaml . | nindent 4 }}
10
+ {{- end }}
10
11
spec :
11
12
replicas : 1
12
13
strategy :
@@ -21,12 +22,12 @@ spec:
21
22
app.kubernetes.io/name : {{ include "kuberay-operator.name" . }}
22
23
app.kubernetes.io/instance : {{ .Release.Name }}
23
24
app.kubernetes.io/component : {{ include "kuberay-operator.component" . }}
24
- {{- if .Values.labels }}
25
- {{- toYaml .Values.labels | nindent 8 }}
25
+ {{- with .Values.labels }}
26
+ {{- toYaml . | nindent 8 }}
26
27
{{- end }}
27
- {{- if .Values.annotations }}
28
+ {{- with .Values.annotations }}
28
29
annotations :
29
- {{- toYaml .Values.annotations | nindent 8 }}
30
+ {{- toYaml . | nindent 8 }}
30
31
{{- end }}
31
32
spec :
32
33
{{- with .Values.imagePullSecrets }}
@@ -44,14 +45,20 @@ spec:
44
45
emptyDir : {}
45
46
{{- end }}
46
47
{{- end }}
48
+ {{- with .Values.podSecurityContext }}
47
49
securityContext :
48
- {{- toYaml .Values.podSecurityContext | nindent 8 }}
50
+ {{- toYaml . | nindent 8 }}
51
+ {{- end }}
49
52
containers :
50
53
- name : {{ .Chart.Name }}
54
+ {{- with .Values.securityContext }}
51
55
securityContext :
52
- {{- toYaml .Values.securityContext | nindent 12 }}
56
+ {{- toYaml . | nindent 12 }}
57
+ {{- end }}
53
58
image : " {{ .Values.image.repository }}:{{ .Values.image.tag }}"
54
- imagePullPolicy : {{ .Values.image.pullPolicy }}
59
+ {{- with .Values.image.pullPolicy }}
60
+ imagePullPolicy : {{ . }}
61
+ {{- end }}
55
62
{{- if and (.Values.logging.baseDir) (.Values.logging.fileName) }}
56
63
volumeMounts :
57
64
- name : kuberay-logs
@@ -107,8 +114,10 @@ spec:
107
114
- name : http
108
115
containerPort : 8080
109
116
protocol : TCP
117
+ {{- with .Values.env }}
110
118
env :
111
- {{- toYaml .Values.env | nindent 12}}
119
+ {{- toYaml . | nindent 12 }}
120
+ {{- end }}
112
121
livenessProbe :
113
122
httpGet :
114
123
path : /metrics
@@ -123,17 +132,19 @@ spec:
123
132
initialDelaySeconds : {{ .Values.readinessProbe.initialDelaySeconds }}
124
133
periodSeconds : {{ .Values.readinessProbe.periodSeconds }}
125
134
failureThreshold : {{ .Values.readinessProbe.failureThreshold }}
135
+ {{- with .Values.resources }}
126
136
resources :
127
- {{- toYaml .Values.resources | nindent 12 }}
137
+ {{- toYaml . | nindent 12 }}
138
+ {{- end }}
128
139
{{- with .Values.nodeSelector }}
129
140
nodeSelector :
130
141
{{- toYaml . | nindent 8 }}
131
142
{{- end }}
132
- {{- with .Values.affinity }}
143
+ {{- with .Values.affinity }}
133
144
affinity :
134
145
{{- toYaml . | nindent 8 }}
135
- {{- end }}
136
- {{- with .Values.tolerations }}
146
+ {{- end }}
147
+ {{- with .Values.tolerations }}
137
148
tolerations :
138
149
{{- toYaml . | nindent 8 }}
139
- {{- end }}
150
+ {{- end }}
0 commit comments