mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 19:10:07 -03:30
Use revolved EE for Container Group tasks
This commit is contained in:
parent
a2e63bd1e2
commit
1e9b221486
@ -3126,11 +3126,20 @@ class AWXReceptorJob:
|
||||
|
||||
@property
|
||||
def pod_definition(self):
|
||||
ee = self.task.instance.resolve_execution_environment()
|
||||
|
||||
default_pod_spec = {
|
||||
"apiVersion": "v1",
|
||||
"kind": "Pod",
|
||||
"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 = {}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user