argo-events icon indicating copy to clipboard operation
argo-events copied to clipboard

Allow EventSource/Sensor defaults to be set in a ConfigMap

Open JacobHenner opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe.

In order to comply with enforced pod security standards, each pod created by an EventSource or Sensor must be configured with specific SecurityContext values (defined in .spec.template.securityContext in a Sensor or EventSource). This is also true for other fields in .spec.template - they must be set on each Sensor/EventSource.

Right now, there is no built-in mechanism available to set default values. Cluster operators might want to impose default .spec.template fields for various reasons.

Describe the solution you'd like

Instead of requiring all users to include boilerplate configuration in each Sensor/EventSource, operators should be able to specify defaults in a ConfigMap. A similar feature exists today in Argo Workflows.

Describe alternatives you've considered

Cluster operators could also implement a mutating admission webhook to set Sensor/EventSource .spec.template defaults, but a built-in defaults feature seems more appropriate and user-friendly.


Message from the maintainers:

If you wish to see this enhancement implemented please add a 👍 reaction to this issue! We often sort issues this way to know what to prioritize.

JacobHenner avatar Feb 05 '23 17:02 JacobHenner