File tree 1 file changed +19
-5
lines changed
charts/rstudio-connect/files
1 file changed +19
-5
lines changed Original file line number Diff line number Diff line change @@ -267,18 +267,32 @@ spec:
267
267
{ {- end } }
268
268
{ {- end } }
269
269
{ {- end } }
270
- { {- if any (ne (len $requests ) 0) (ne (len $limits ) 0) } }
270
+ { {- if or (ne (len $requests ) 0) (ne (len $limits ) 0) } }
271
271
resources:
272
272
{ {- if ne (len $requests ) 0 } }
273
273
requests:
274
- { {- range $key , $val := $requests } }
275
- { { $key } }: { { toYaml $val } }
274
+ { {- if $requests .cpu } }
275
+ cpu: { { $requests .cpu } }
276
+ { {- else } }
277
+ cpu: 500m
278
+ { {- end } }
279
+ { {- if $requests .memory } }
280
+ memory: { { $requests .memory } }
281
+ { {- else } }
282
+ memory: 1Gi
276
283
{ {- end } }
277
284
{ {- end } }
278
285
{ {- if ne (len $limits ) 0 } }
279
286
limits:
280
- { {- range $key , $val := $limits } }
281
- { { $key } }: { { toYaml $val } }
287
+ { {- if $limits .cpu } }
288
+ cpu: { { $limits .cpu } }
289
+ { {- else } }
290
+ cpu: 500m
291
+ { {- end } }
292
+ { {- if $limits .memory } }
293
+ memory: { { $limits .memory } }
294
+ { {- else } }
295
+ memory: 1Gi
282
296
{ {- end } }
283
297
{ {- end } }
284
298
{ {- else } }
You can’t perform that action at this time.
0 commit comments