fix(helm): add pod-level security context support to QueryDoc deployment#1313
Merged
EItanya merged 1 commit intokagent-dev:mainfrom Feb 16, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds pod-level security context support to the QueryDoc Helm chart to help users comply with Kubernetes Pod Security Admission (restricted) requirements.
Changes:
- Add
podSecurityContext: {}to the QueryDoc chart default values. - Render
spec.template.spec.securityContextfrom.Values.podSecurityContextwhen provided. - Add helm-unittest coverage for default behavior (absent) and custom pod security context values.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
helm/tools/querydoc/values.yaml |
Introduces podSecurityContext value to configure pod-level security context. |
helm/tools/querydoc/templates/deployment.yaml |
Conditionally renders pod securityContext from podSecurityContext. |
helm/tools/querydoc/tests/deployment_test.yaml |
Adds tests ensuring pod security context is omitted by default and set when configured. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Fixes kagent-dev#1184 — QueryDoc helm template now supports pod-level security contexts via the `podSecurityContext` value, enabling PSA restricted compliance. Container-level `securityContext` was already supported but pod-level was missing. Signed-off-by: opspawn <sean@opspawn.com>
900b682 to
597854a
Compare
EItanya
approved these changes
Feb 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #1184 — QueryDoc helm template now supports pod-level security contexts via the
podSecurityContextvalue.Problem
Users running PSA (Pod Security Admission) in restricted mode need to set pod-level security contexts (e.g.,
runAsNonRoot,fsGroup,seccompProfile). The QueryDoc deployment template only supported container-levelsecurityContextbut not pod-levelsecurityContext.Changes
values.yaml: AddedpodSecurityContext: {}default valuedeployment.yaml: Added conditional pod-levelsecurityContextblock underspec.template.specdeployment_test.yaml: Added two test cases (default empty + custom values)Usage
This follows the same pattern used in the main kagent controller and UI deployments.
Signed-off-by: opspawn agent@opspawn.com