Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command podman-run options customisable from job_template view #12339

Open
jangel97 opened this issue Jun 7, 2022 · 1 comment
Open

Command podman-run options customisable from job_template view #12339

jangel97 opened this issue Jun 7, 2022 · 1 comment

Comments

@jangel97
Copy link

jangel97 commented Jun 7, 2022

Hi,

At this very moment it is only possible to customize the podman-run command parameters via few global settings. It would be cool to be able to modify it via job template view. Some parameters like Environment vars, volumes mounted into the EEs (and others), would be cool if they could be set at the job template level.

For example, in Kubernetes, the workloads (pods) that run across the execution plane depend on some sort of definition (in AAP the workloads are EEs running Ansible playbooks). Let's say for example a Kubernetes Deployment object, which is the state definition of a given workload (it has .spec.volumeMounts, .spec.securityContext, .spec,nodeSelector, and countless options). The definition stated in the Deployment object is translated into the workloads (pods), which is why, some pods may mount some volumes whereas others will not need to mount anything. This means that pods living in the same namespace can have different volume mounts, security contexts and so on, because they are managed by different Deployment objects.

In the case of the AAP, I think that the definition of the workloads are the Job Templates, and it would be cool if you could specify the behaviour of podman-run command from the Job Template view.

An interesting use-case for this feature request:
In my case, for me to authenticate against the RHV hypervisor we do it via Kerberos (setting the KRB5CCNAME=FILE:/tmp/file-tgt as an env var for the ovirt_auth module). For me to make this work in AAP I need to make available the file-tgt file inside my execution environment (and can't do it other way because of some security requirements, my playbooks need to authenticate using this tgt file which expires every X hours).

Then my only option is to have this file in all of the execution nodes so I can mount it into the EEs:
image

Honestly, I do not like to mount this file for all of my workloads (EEs) running across the execution plane, it does not make sense that this file needs to be mounted inside all the EEs for all of the job templates. As I see it, it would be really cool if you could specify podman-run options from the job_template view, so the file only gets mounted when I run my RHV job template.

Let me know if this feature request makes sense.

Kind regards and thank you!

@jangel97 jangel97 changed the title Podman run options command settable from job_template view Podman run options command customisable from job_template view Jun 7, 2022
@jangel97 jangel97 changed the title Podman run options command customisable from job_template view Command podman-run options customisable from job_template view Jun 7, 2022
@discostur
Copy link

Would be really cool to configure that on a template base level (not globally).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants