File tree Expand file tree Collapse file tree 2 files changed +16
-7
lines changed Expand file tree Collapse file tree 2 files changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -199,12 +199,12 @@ coder:
199
199
# coder.resources -- The resources to request for Coder. The below values are
200
200
# defaults and can be overridden.
201
201
resources :
202
- limits :
203
- cpu : 2000m
204
- memory : 4096Mi
205
- requests :
206
- cpu : 2000m
207
- memory : 4096Mi
202
+ # limits:
203
+ # cpu: 2000m
204
+ # memory: 4096Mi
205
+ # requests:
206
+ # cpu: 2000m
207
+ # memory: 4096Mi
208
208
209
209
# coder.certs -- CA bundles to mount inside the Coder pod.
210
210
certs :
Original file line number Diff line number Diff line change @@ -66,7 +66,16 @@ imagePullPolicy: {{ .Values.coder.image.pullPolicy }}
66
66
command :
67
67
{{- toYaml .Values.coder.command | nindent 2 }}
68
68
resources :
69
- {{- toYaml .Values.coder.resources | nindent 2 }}
69
+ {{- if and (hasKey .Values.coder "resources") (not (empty .Values.coder.resources)) }}
70
+ {{- toYaml .Values.coder.resources | nindent 2 }}
71
+ {{- else }}
72
+ limits :
73
+ cpu : 2000m
74
+ memory : 4096Mi
75
+ requests :
76
+ cpu : 2000m
77
+ memory : 4096Mi
78
+ {{- end }}
70
79
lifecycle :
71
80
{{- toYaml .Values.coder.lifecycle | nindent 2 }}
72
81
securityContext : {{ toYaml .Values.coder.securityContext | nindent 2 }}
You can’t perform that action at this time.
0 commit comments