fix: podSecurityContext for frontend#246
Merged
nscuro merged 1 commit intoDependencyTrack:mainfrom Jul 8, 2025
Merged
Conversation
…c claim Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR fixes the missing pod security context for the frontend pod and updates the PVC configuration in the API server StatefulSet to include the required apiVersion and kind fields.
- Enable customization of the pod security context for the frontend pod
- Update the values schema and deployment template with podSecurityContext settings
- Add missing apiVersion and kind fields to the PVC volumeClaimTemplates for the API server to resolve ArgoCD diffs
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| charts/dependency-track/values.yaml | Added podSecurityContext settings for the frontend pod |
| charts/dependency-track/values.schema.json | Included podSecurityContext property in the schema |
| charts/dependency-track/templates/frontend/deployment.yaml | Updated deployment to conditionally add the pod security context |
| charts/dependency-track/templates/api-server/statefulset.yaml | Added missing apiVersion and kind fields for the PVC volumeClaimTemplates |
Comments suppressed due to low confidence (2)
charts/dependency-track/templates/frontend/deployment.yaml:31
- Consider aligning the key name in the rendered output with the values file (i.e., using 'podSecurityContext') for clarity, as 'securityContext' may be confused with container-level security settings.
{{- with .Values.frontend.podSecurityContext }}
charts/dependency-track/templates/api-server/statefulset.yaml:133
- Ensure the new 'apiVersion' and 'kind' fields in the volumeClaimTemplates adhere to the expected schema and consider adding documentation if this change impacts downstream processes like ArgoCD integrations.
kind: PersistentVolumeClaim
nscuro
approved these changes
Jul 8, 2025
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.
Add the ability to customize the podSecurityContext for the frontend pod.
Also, add the missing API and Kind for the PVC, which triggers diffs on ArgoCD.