Skip to content

Commit 43d93a4

Browse files
authored
Merge branch 'bugfix' into helm_zero_initialDelaySeconds
2 parents 6d4dfd5 + 659e136 commit 43d93a4

File tree

11 files changed

+73
-1
lines changed

11 files changed

+73
-1
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Update HELM docs for Renovate & Dependabot
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
- dev
8+
- bugfix
9+
- release/**
10+
- hotfix/**
11+
12+
jobs:
13+
docs_updates:
14+
name: Update documentation
15+
runs-on: ubuntu-latest
16+
if: startsWith(github.head_ref, 'renovate/') or startsWith(github.head_ref, 'dependabot/')
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
20+
21+
- name: Run helm-docs
22+
uses: losisin/helm-docs-github-action@a57fae5676e4c55a228ea654a1bcaec8dd3cf5b5 # v1.6.2
23+
with:
24+
chart-search-root: "helm/defectdojo"
25+
git-push: true

.github/workflows/test-helm-chart.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
target_annotation=$(git show "${{ env.ct-branch }}:helm/defectdojo/Chart.yaml" | yq e '.annotations."artifacthub.io/changes"' -)
8080
8181
if [[ "$current_annotation" == "$target_annotation" ]]; then
82-
echo "::error file=helm/defectdojo/Chart.yaml::The 'artifacthub.io/changes' annotation has not been updated compared to ${{ env.ct-branch }}"
82+
echo "::error file=helm/defectdojo/Chart.yaml::The 'artifacthub.io/changes' annotation has not been updated compared to ${{ env.ct-branch }}. For more, check the hint in 'helm/defectdojo/Chart.yaml'"
8383
exit 1
8484
fi
8585

helm/defectdojo/Chart.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,24 @@ dependencies:
1818
repository: "oci://us-docker.pkg.dev/os-public-container-registry/defectdojo"
1919
condition: redis.enabled
2020
annotations:
21+
# For correct syntax, check https://artifacthub.io/docs/topics/annotations/helm/
22+
# This is example for "artifacthub.io/changes"
23+
# artifacthub.io/changes: |
24+
# - kind: added
25+
# description: Cool feature
26+
# - kind: fixed
27+
# description: Minor bug
28+
# - kind: changed
29+
# description: Broken feature
30+
# - kind: removed
31+
# description: Old bug
32+
# - kind: deprecated
33+
# description: Not-needed feature
34+
# - kind: security
35+
# description: Critical bug
2136
artifacthub.io/prerelease: "true"
2237
artifacthub.io/changes: |
2338
- kind: fixed
2439
description: Drop initialDelaySeconds if eq. zero
40+
- kind: added
41+
description: Add support for automountServiceAccountToken

helm/defectdojo/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,7 @@ A Helm chart for Kubernetes to install DefectDojo
528528
| celery.annotations | object | `{}` | |
529529
| celery.beat.affinity | object | `{}` | |
530530
| celery.beat.annotations | object | `{}` | |
531+
| celery.beat.automountServiceAccountToken | bool | `false` | |
531532
| celery.beat.extraEnv | list | `[]` | |
532533
| celery.beat.extraInitContainers | list | `[]` | |
533534
| celery.beat.extraVolumeMounts | list | `[]` | |
@@ -548,6 +549,7 @@ A Helm chart for Kubernetes to install DefectDojo
548549
| celery.worker.affinity | object | `{}` | |
549550
| celery.worker.annotations | object | `{}` | |
550551
| celery.worker.appSettings.poolType | string | `"solo"` | |
552+
| celery.worker.automountServiceAccountToken | bool | `false` | |
551553
| celery.worker.extraEnv | list | `[]` | |
552554
| celery.worker.extraInitContainers | list | `[]` | |
553555
| celery.worker.extraVolumeMounts | list | `[]` | |
@@ -582,6 +584,7 @@ A Helm chart for Kubernetes to install DefectDojo
582584
| disableHooks | bool | `false` | |
583585
| django.affinity | object | `{}` | |
584586
| django.annotations | object | `{}` | |
587+
| django.automountServiceAccountToken | bool | `false` | |
585588
| django.extraInitContainers | list | `[]` | |
586589
| django.extraVolumes | list | `[]` | |
587590
| django.ingress.activateTLS | bool | `true` | |
@@ -656,6 +659,7 @@ A Helm chart for Kubernetes to install DefectDojo
656659
| imagePullSecrets | string | `nil` | |
657660
| initializer.affinity | object | `{}` | |
658661
| initializer.annotations | object | `{}` | |
662+
| initializer.automountServiceAccountToken | bool | `false` | |
659663
| initializer.extraEnv | list | `[]` | |
660664
| initializer.extraVolumeMounts | list | `[]` | |
661665
| initializer.extraVolumes | list | `[]` | |
@@ -722,6 +726,7 @@ A Helm chart for Kubernetes to install DefectDojo
722726
| serviceAccount.create | bool | `true` | |
723727
| serviceAccount.labels | object | `{}` | |
724728
| tag | string | `"latest"` | |
729+
| tests.unitTests.automountServiceAccountToken | bool | `false` | |
725730
| tests.unitTests.resources.limits.cpu | string | `"500m"` | |
726731
| tests.unitTests.resources.limits.memory | string | `"512Mi"` | |
727732
| tests.unitTests.resources.requests.cpu | string | `"100m"` | |

helm/defectdojo/templates/celery-beat-deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ spec:
5252
{{- end }}
5353
spec:
5454
serviceAccountName: {{ include "defectdojo.serviceAccountName" . }}
55+
automountServiceAccountToken: {{ .Values.celery.beat.automountServiceAccountToken }}
5556
{{- with .Values.imagePullSecrets }}
5657
imagePullSecrets:
5758
- name: {{ . }}

helm/defectdojo/templates/celery-worker-deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ spec:
5252
{{- end }}
5353
spec:
5454
serviceAccountName: {{ include "defectdojo.serviceAccountName" . }}
55+
automountServiceAccountToken: {{ .Values.celery.worker.automountServiceAccountToken }}
5556
{{- with .Values.imagePullSecrets }}
5657
imagePullSecrets:
5758
- name: {{ . }}

helm/defectdojo/templates/django-deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ spec:
5959
{{- end }}
6060
spec:
6161
serviceAccountName: {{ include "defectdojo.serviceAccountName" . }}
62+
automountServiceAccountToken: {{ .Values.django.automountServiceAccountToken }}
6263
{{- with .Values.imagePullSecrets }}
6364
imagePullSecrets:
6465
- name: {{ quote . }}

helm/defectdojo/templates/initializer-job.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ spec:
3939
{{- end }}
4040
spec:
4141
serviceAccountName: {{ include "defectdojo.serviceAccountName" . }}
42+
automountServiceAccountToken: {{ .Values.initializer.automountServiceAccountToken }}
4243
{{- with .Values.imagePullSecrets }}
4344
imagePullSecrets:
4445
- name: {{ . }}

helm/defectdojo/templates/tests/unit-tests.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ metadata:
1212
helm.sh/hook: test-success
1313
spec:
1414
serviceAccountName: {{ include "defectdojo.serviceAccountName" . }}
15+
automountServiceAccountToken: {{ .Values.tests.unitTests.automountServiceAccountToken }}
1516
{{- with .Values.imagePullSecrets }}
1617
imagePullSecrets:
1718
- name: {{ . }}

helm/defectdojo/values.schema.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@
4949
"annotations": {
5050
"type": "object"
5151
},
52+
"automountServiceAccountToken": {
53+
"type": "boolean"
54+
},
5255
"extraEnv": {
5356
"type": "array"
5457
},
@@ -134,6 +137,9 @@
134137
}
135138
}
136139
},
140+
"automountServiceAccountToken": {
141+
"type": "boolean"
142+
},
137143
"extraEnv": {
138144
"type": "array"
139145
},
@@ -288,6 +294,9 @@
288294
"annotations": {
289295
"type": "object"
290296
},
297+
"automountServiceAccountToken": {
298+
"type": "boolean"
299+
},
291300
"extraInitContainers": {
292301
"type": "array"
293302
},
@@ -616,6 +625,9 @@
616625
"annotations": {
617626
"type": "object"
618627
},
628+
"automountServiceAccountToken": {
629+
"type": "boolean"
630+
},
619631
"extraEnv": {
620632
"type": "array"
621633
},
@@ -968,6 +980,9 @@
968980
"unitTests": {
969981
"type": "object",
970982
"properties": {
983+
"automountServiceAccountToken": {
984+
"type": "boolean"
985+
},
971986
"resources": {
972987
"type": "object",
973988
"properties": {

0 commit comments

Comments
 (0)