Skip to content

Commit 1e5c1ee

Browse files
fix: lint and add changes to release notes
1 parent 4f6fba4 commit 1e5c1ee

2 files changed

Lines changed: 16 additions & 3 deletions

File tree

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@ This release introduces several important changes to the Helm chart configuratio
1818
> 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).
1919
> The new approach resolves these limitations.
2020
21+
#### Security context
22+
23+
This Helm chart extends security context capabilities to all deployed pods and containers.
24+
You can define a default pod and container security context globally using `securityContext.podSecurityContext` and `securityContext.containerSecurityContext` keys.
25+
Additionally, each deployment can specify its own pod and container security contexts, which will override or merge with the global ones.
26+
27+
#### Fine-grained resources
28+
29+
Now each container can specify the resource requests and limits.
30+
2131
#### Moved values
2232

2333
The following Helm chart values have been modified in this release:
@@ -27,6 +37,8 @@ The following Helm chart values have been modified in this release:
2737
- `redis.redisServer``redisServer` (prevents potential schema conflicts with upstream chart)
2838
- `redis.transportEncryption.params``redisParams` (prevents potential schema conflicts with upstream chart)
2939
- `postgresql.postgresServer``postgresServer` (prevents potential schema conflicts with upstream chart)
40+
- `securityContext.djangoSecurityContext` → deprecated in favor of container-specific security contexts (`celery.beat.containerSecurityContext`, `celery.worker.containerSecurityContext`, `django.uwsgi.containerSecurityContext` and `dbMigrationChecker.containerSecurityContext`)
41+
- `securityContext.nginxSecurityContext` → deprecated in favor of container-specific security contexts (`django.nginx.containerSecurityContext`)
3042

3143
### New features
3244

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

4760
## PostgreSQL Major Version Upgrade in Docker Compose
4861

helm/defectdojo/templates/_helpers.tpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,10 @@ from a given context.
213213
2: the key under the context with security context (e.g., "foo.bar")
214214
*/}}
215215
{{- define "helpers.securityContext" -}}
216-
{{- $securityContext := dict -}}
217216
{{- $values := merge dict (index . 0) -}}
218-
{{- $defaultSecurityContextKey := merge dict (index . 1) -}}
219-
{{- $securityContextKey := merge dict (index . 2) -}}
217+
{{- $defaultSecurityContextKey := index . 1 -}}
218+
{{- $securityContextKey := index . 2 -}}
219+
{{- $securityContext := dict -}}
220220
{{- with $values }}
221221
{{- $securityContext = (merge
222222
$securityContext

0 commit comments

Comments
 (0)