Skip to content

Commit 56c8467

Browse files
chore: move to 2.52, fix pending issues
1 parent aa341fa commit 56c8467

File tree

3 files changed

+33
-18
lines changed

3 files changed

+33
-18
lines changed

docs/content/en/open_source/upgrading/2.51.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,6 @@ This release introduces several important changes to the Helm chart configuratio
3030
> The previous volume implementation prevented mounting projected volumes (such as secret mounts with renamed key names) and per-container volume mounts (like nginx emptyDir when readOnlyRootFs is enforced).
3131
> The new approach resolves these limitations.
3232
33-
#### Security context
34-
35-
This Helm chart extends security context capabilities to all deployed pods and containers.
36-
You can define a default pod and container security context globally using `securityContext.podSecurityContext` and `securityContext.containerSecurityContext` keys.
37-
Additionally, each deployment can specify its own pod and container security contexts, which will override or merge with the global ones.
38-
39-
#### Fine-grained resources
40-
41-
Now each container can specify the resource requests and limits.
42-
4333
#### Moved values
4434

4535
The following Helm chart values have been modified in this release:
@@ -49,8 +39,6 @@ The following Helm chart values have been modified in this release:
4939
- `redis.redisServer``redisServer` (prevents potential schema conflicts with upstream chart)
5040
- `redis.transportEncryption.params``redisParams` (prevents potential schema conflicts with upstream chart)
5141
- `postgresql.postgresServer``postgresServer` (prevents potential schema conflicts with upstream chart)
52-
- `securityContext.djangoSecurityContext` → deprecated in favor of container-specific security contexts (`celery.beat.containerSecurityContext`, `celery.worker.containerSecurityContext`, `django.uwsgi.containerSecurityContext` and `dbMigrationChecker.containerSecurityContext`)
53-
- `securityContext.nginxSecurityContext` → deprecated in favor of container-specific security contexts (`django.nginx.containerSecurityContext`)
5442

5543
### New features
5644

@@ -67,7 +55,6 @@ The following Helm chart values have been modified in this release:
6755
- **Optional secret references**: Some secret references are now optional, allowing the chart to function even when certain secrets are not created.
6856
- **Fixed secret mounting**: Resolved issues with optional secret mounts and references.
6957
- **Improved code organization**: Minor Helm chart refactoring to enhance readability and maintainability.
70-
- **Extra anotations**: Now we can add common annotations to all resources.
7158

7259
## PostgreSQL Major Version Upgrade in Docker Compose
7360

docs/content/en/open_source/upgrading/2.52.md

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,34 @@
22
title: 'Upgrading to DefectDojo Version 2.52.x'
33
toc_hide: true
44
weight: -20251006
5-
description: No special instructions.
5+
description: Helm chart changes.
66
---
7-
There are no special instructions for upgrading to 2.52.x. Check the [Release Notes](https://github.com/DefectDojo/django-DefectDojo/releases/tag/2.52.0) for the contents of the release.
7+
8+
## Helm Chart Changes
9+
10+
This release introduces more important changes to the Helm chart configuration:
11+
12+
### Breaking changes
13+
14+
#### Security context
15+
16+
This Helm chart extends security context capabilities to all deployed pods and containers.
17+
You can define a default pod and container security context globally using `securityContext.podSecurityContext` and `securityContext.containerSecurityContext` keys.
18+
Additionally, each deployment can specify its own pod and container security contexts, which will override or merge with the global ones.
19+
20+
#### Fine-grained resources
21+
22+
Now each container can specify the resource requests and limits.
23+
24+
#### Moved values
25+
26+
The following Helm chart values have been modified in this release:
27+
28+
- `securityContext.djangoSecurityContext` → deprecated in favor of container-specific security contexts (`celery.beat.containerSecurityContext`, `celery.worker.containerSecurityContext`, `django.uwsgi.containerSecurityContext` and `dbMigrationChecker.containerSecurityContext`)
29+
- `securityContext.nginxSecurityContext` → deprecated in favor of container-specific security contexts (`django.nginx.containerSecurityContext`)
30+
31+
### Other changes
32+
33+
- **Extra annotations**: Now we can add common annotations to all resources.
34+
35+
There are other instructions for upgrading to 2.52.x. Check the [Release Notes](https://github.com/DefectDojo/django-DefectDojo/releases/tag/2.52.0) for the contents of the release.

helm/defectdojo/values.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ django:
285285
# nginx.ingress.kubernetes.io/proxy-send-timeout: "1800"
286286
nginx:
287287
# Container security context for the nginx containers.
288-
containerSecurityContext: &nginxSecurityContext
288+
containerSecurityContext:
289289
# nginx dockerfile sets USER=1001
290290
runAsUser: 1001
291291
# To extra environment variables to the nginx container, you can use extraEnv. For example:
@@ -313,7 +313,7 @@ django:
313313
strategy: {}
314314
tolerations: []
315315
uwsgi:
316-
containerSecurityContext: &djangoSecurityContext
316+
containerSecurityContext:
317317
# django dockerfile sets USER=1001
318318
runAsUser: 1001
319319
# To add (or override) extra variables which need to be pulled from another configMap, you can
@@ -491,7 +491,7 @@ cloudsql:
491491
# whether to use a private IP to connect to the database
492492
use_private_ip: false
493493
# Optional: security context for the CloudSQL proxy container.
494-
containerSecurityContext:
494+
containerSecurityContext: {}
495495
# Additional environment variables for the CloudSQL proxy container.
496496
extraEnv: []
497497
# Array of additional volume mount points for the CloudSQL proxy container

0 commit comments

Comments
 (0)