Unverified Commit c281fde3 authored by julienmancuso's avatar julienmancuso Committed by GitHub
Browse files

fix: check for resource in pipeline helm chart (#687)

parent 643659c6
......@@ -48,9 +48,12 @@ spec:
command:
- sh
- -c
{{ if .config.resources }}
resources:
requests:
{{ if .config.resources.cpu }}
cpu: "{{ .config.resources.cpu }}"
{{ end }}
{{ if .config.resources.memory }}
memory: "{{ .config.resources.memory }}"
{{ end }}
......@@ -58,13 +61,16 @@ spec:
nvidia.com/gpu: "{{ .config.resources.gpu }}"
{{ end }}
limits:
{{ if .config.resources.cpu }}
cpu: "{{ .config.resources.cpu }}"
{{ end }}
{{ if .config.resources.memory }}
memory: "{{ .config.resources.memory }}"
{{ end }}
{{ if .config.resources.gpu }}
nvidia.com/gpu: "{{ .config.resources.gpu }}"
{{ end }}
{{ end }}
env:
- name: TRAFFIC_TIMEOUT
value: "{{ .config.traffic.timeout }}"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment