Add securityContext support for TargetAllocator#2162
Conversation
|
@hahakiki2025 please sign the CLA then I will review the code |
3da63ab to
99cc9f2
Compare
@TylerHelmuth CLA signed, please go ahead, thanks |
|
@hahakiki2025 please bump the charts minor version and regenerate the examples with |
34a3017 to
f5fc8dc
Compare
|
@TylerHelmuth Done the version bump, please help have a look, thanks! |
cccafee to
ef7f26f
Compare
ef7f26f to
9df63d2
Compare
Currently, when namespace-level privilege is not enabled, deploying TargetAllocator alongside the OpenTelemetry Collector (with `enabled=true`) fails due to PodSecurity "restricted" policy violations: - allowPrivilegeEscalation must be set to false - capabilities must drop ["ALL"] This change adds support for configuring securityContext for the TargetAllocator container, enabling compliant deployments under restricted PodSecurity settings. Signed-off-by: Yan Li <sherly_lee@163.com>
Signed-off-by: Yan Li <sherly_lee@163.com>
ed0b99a to
1464daa
Compare
|
@TylerHelmuth I have rebased the code to resolve the conflicts. Since @atoulme and @povilasv have already approved it, could you please take another look and help merge this when you have a moment? Thank you! |
| SecurityContext: | ||
| properties: | ||
| allowPrivilegeEscalation: | ||
| type: boolean | ||
| capabilities: | ||
| properties: | ||
| add: | ||
| items: | ||
| type: string | ||
| type: array | ||
| x-kubernetes-list-type: atomic | ||
| drop: | ||
| items: | ||
| type: string | ||
| type: array | ||
| x-kubernetes-list-type: atomic | ||
| type: object | ||
| type: object |
There was a problem hiding this comment.
All the files in this dir are managed via make update-operator-crds. We can't add this manually, it would need to be in the upstream OpenTelemetry Operator CRD
Currently, when namespace-level privilege is not enabled, deploying TargetAllocator alongside the OpenTelemetry Collector (with
enabled=true) fails due to PodSecurity "restricted" policy violations:This change adds support for configuring securityContext for the TargetAllocator container, enabling compliant deployments under restricted PodSecurity settings.
Test Steps and Logs