Allow configuration of resource requirements for init containers (#1392)

- In some use cases, limits must be set for every container in a
    cluster. To address this, we will use the task and web resource
requirements for the initContainers where applicable.
This commit is contained in:
Christian Adams
2023-05-03 17:41:01 -04:00
committed by GitHub
parent 4a5141933c
commit 1023718b87
2 changed files with 3 additions and 0 deletions

View File

@@ -112,6 +112,7 @@ spec:
- name: init-projects
image: '{{ _init_projects_container_image }}'
imagePullPolicy: '{{ image_pull_policy }}'
resources: {{ task_resource_requirements }}
command:
- /bin/sh
- -c

View File

@@ -68,6 +68,7 @@ spec:
- name: init
image: '{{ _init_container_image }}'
imagePullPolicy: '{{ image_pull_policy }}'
resources: {{ web_resource_requirements }}
command:
- /bin/sh
- -c
@@ -96,6 +97,7 @@ spec:
- name: init-projects
image: '{{ _init_projects_container_image }}'
imagePullPolicy: '{{ image_pull_policy }}'
resources: {{ web_resource_requirements }}
command:
- /bin/sh
- -c