mirror of
https://github.com/ansible/awx-operator.git
synced 2026-05-08 06:12:54 +00:00
Update code with capability to set the init container resources instead of using web or task container resources (#1439)
This commit is contained in:
@@ -1489,6 +1489,28 @@ spec:
|
|||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
|
init_container_resource_requirements:
|
||||||
|
description: Resource requirements for the init container
|
||||||
|
properties:
|
||||||
|
requests:
|
||||||
|
properties:
|
||||||
|
cpu:
|
||||||
|
type: string
|
||||||
|
memory:
|
||||||
|
type: string
|
||||||
|
storage:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
limits:
|
||||||
|
properties:
|
||||||
|
cpu:
|
||||||
|
type: string
|
||||||
|
memory:
|
||||||
|
type: string
|
||||||
|
storage:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
service_account_annotations:
|
service_account_annotations:
|
||||||
description: ServiceAccount annotations
|
description: ServiceAccount annotations
|
||||||
type: string
|
type: string
|
||||||
|
|||||||
@@ -371,6 +371,11 @@ spec:
|
|||||||
path: postgres_storage_requirements
|
path: postgres_storage_requirements
|
||||||
x-descriptors:
|
x-descriptors:
|
||||||
- urn:alm:descriptor:com.tectonic.ui:advanced
|
- urn:alm:descriptor:com.tectonic.ui:advanced
|
||||||
|
- description: Init Container resource requirements
|
||||||
|
path: init_container_resource_requirements
|
||||||
|
x-descriptors:
|
||||||
|
- urn:alm:descriptor:com.tectonic.ui:advanced
|
||||||
|
- urn:alm:descriptor:com.tectonic.ui:resourceRequirements
|
||||||
- displayName: Replicas
|
- displayName: Replicas
|
||||||
path: replicas
|
path: replicas
|
||||||
x-descriptors:
|
x-descriptors:
|
||||||
|
|||||||
@@ -321,6 +321,11 @@ rsyslog_resource_requirements:
|
|||||||
cpu: 100m
|
cpu: 100m
|
||||||
memory: 128Mi
|
memory: 128Mi
|
||||||
|
|
||||||
|
init_container_resource_requirements:
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 128Mi
|
||||||
|
|
||||||
# Add extra environment variables to the AWX task/web containers. Specify as
|
# Add extra environment variables to the AWX task/web containers. Specify as
|
||||||
# literal block. E.g.:
|
# literal block. E.g.:
|
||||||
# task_extra_env: |
|
# task_extra_env: |
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ spec:
|
|||||||
- name: init
|
- name: init
|
||||||
image: '{{ _init_container_image }}'
|
image: '{{ _init_container_image }}'
|
||||||
imagePullPolicy: '{{ image_pull_policy }}'
|
imagePullPolicy: '{{ image_pull_policy }}'
|
||||||
resources: {{ task_resource_requirements }}
|
resources: {{ init_container_resource_requirements }}
|
||||||
command:
|
command:
|
||||||
- /bin/sh
|
- /bin/sh
|
||||||
- -c
|
- -c
|
||||||
@@ -122,7 +122,7 @@ spec:
|
|||||||
- name: init-projects
|
- name: init-projects
|
||||||
image: '{{ _init_projects_container_image }}'
|
image: '{{ _init_projects_container_image }}'
|
||||||
imagePullPolicy: '{{ image_pull_policy }}'
|
imagePullPolicy: '{{ image_pull_policy }}'
|
||||||
resources: {{ task_resource_requirements }}
|
resources: {{ init_container_resource_requirements }}
|
||||||
command:
|
command:
|
||||||
- /bin/sh
|
- /bin/sh
|
||||||
- -c
|
- -c
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ spec:
|
|||||||
- name: init
|
- name: init
|
||||||
image: '{{ _init_container_image }}'
|
image: '{{ _init_container_image }}'
|
||||||
imagePullPolicy: '{{ image_pull_policy }}'
|
imagePullPolicy: '{{ image_pull_policy }}'
|
||||||
resources: {{ web_resource_requirements }}
|
resources: {{ init_container_resource_requirements }}
|
||||||
command:
|
command:
|
||||||
- /bin/sh
|
- /bin/sh
|
||||||
- -c
|
- -c
|
||||||
@@ -106,7 +106,7 @@ spec:
|
|||||||
- name: init-projects
|
- name: init-projects
|
||||||
image: '{{ _init_projects_container_image }}'
|
image: '{{ _init_projects_container_image }}'
|
||||||
imagePullPolicy: '{{ image_pull_policy }}'
|
imagePullPolicy: '{{ image_pull_policy }}'
|
||||||
resources: {{ web_resource_requirements }}
|
resources: {{ init_container_resource_requirements }}
|
||||||
command:
|
command:
|
||||||
- /bin/sh
|
- /bin/sh
|
||||||
- -c
|
- -c
|
||||||
|
|||||||
Reference in New Issue
Block a user