Skip to content

Add SecurityContext configuration for Cleanup Job - #2187

Merged
TylerHelmuth merged 1 commit into
open-telemetry:mainfrom
jmmcorreia:cleanup_security_context
May 7, 2026
Merged

Add SecurityContext configuration for Cleanup Job#2187
TylerHelmuth merged 1 commit into
open-telemetry:mainfrom
jmmcorreia:cleanup_security_context

Conversation

@jmmcorreia

Copy link
Copy Markdown
Contributor

As stated in issue #2186, current Cleanup Job does not allow to configure security context. In environments where Pod Security Admission (PSA) is set to restricted, helm uninstall command timeouts due to the fact that the cleanup job is not able to start.

This PR adds the possibility to specify a security context for the cleanup job, but does not change the default behavior. This means that as it stands, PSA would still prevent the cleanup job from starting. However, with the changes, a new values.yaml value can be specified with the extra security context config that ensure that the job can meet the requirements in the restricted environment.

SecurityContext configuration is required to ensure the
cleanup job can run in environments with restricted pod
security admission
@jmmcorreia
jmmcorreia requested review from a team and jaronoff97 as code owners May 7, 2026 15:56
@TylerHelmuth
TylerHelmuth merged commit e17429e into open-telemetry:main May 7, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants