mirror of
https://github.com/ansible/awx.git
synced 2026-03-27 05:45:02 -02:30
Use revolved EE for Container Group tasks
This commit is contained in:
@@ -3126,11 +3126,20 @@ class AWXReceptorJob:
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def pod_definition(self):
|
def pod_definition(self):
|
||||||
|
ee = self.task.instance.resolve_execution_environment()
|
||||||
|
|
||||||
default_pod_spec = {
|
default_pod_spec = {
|
||||||
"apiVersion": "v1",
|
"apiVersion": "v1",
|
||||||
"kind": "Pod",
|
"kind": "Pod",
|
||||||
"metadata": {"namespace": settings.AWX_CONTAINER_GROUP_DEFAULT_NAMESPACE},
|
"metadata": {"namespace": settings.AWX_CONTAINER_GROUP_DEFAULT_NAMESPACE},
|
||||||
"spec": {"containers": [{"image": settings.AWX_CONTAINER_GROUP_DEFAULT_IMAGE, "name": 'worker', "args": ['ansible-runner', 'worker']}]},
|
"spec": {
|
||||||
|
"containers": [
|
||||||
|
{
|
||||||
|
"image": ee.image,
|
||||||
|
"name": 'worker',
|
||||||
|
}
|
||||||
|
],
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
pod_spec_override = {}
|
pod_spec_override = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user