Skip to content

Commit b474297

Browse files
fix: review
1 parent 330a127 commit b474297

File tree

5 files changed

+34
-19
lines changed

5 files changed

+34
-19
lines changed

helm/defectdojo/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
appVersion: "2.47.3"
33
description: A Helm chart for Kubernetes to install DefectDojo
44
name: defectdojo
5-
version: 1.6.194-dev
5+
version: 1.6.193
66
icon: https://www.defectdojo.org/img/favicon.ico
77
maintainers:
88
- name: madchap
@@ -14,6 +14,6 @@ dependencies:
1414
repository: oci://registry-1.docker.io/bitnamicharts
1515
condition: postgresql.enabled
1616
- name: redis
17-
version: ~21.2.5
17+
version: ~19.6.0
1818
repository: oci://registry-1.docker.io/bitnamicharts
1919
condition: redis.enabled

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,12 @@ metadata:
1111
app.kubernetes.io/managed-by: {{ .Release.Service }}
1212
helm.sh/chart: {{ include "defectdojo.chart" . }}
1313
{{- with .Values.extraLabels }}
14-
{{- toYaml . | nindent 4 }}
14+
{{- toYaml . | nindent 4 }}
1515
{{- end }}
16-
{{- if .Values.celery.annotations }}
16+
{{- with .Values.celery.worker.annotations }}
1717
annotations:
18-
{{- with .Values.celery.annotations }}
19-
{{- toYaml . | nindent 4 }}
20-
{{- end }}
21-
{{- end }}
18+
{{- toYaml . | nindent 4 }}
19+
{{- end }}
2220
spec:
2321
replicas: {{ .Values.celery.beat.replicas }}
2422
{{- if .Values.revisionHistoryLimit }}
@@ -163,6 +161,9 @@ spec:
163161
name: {{ $fullName }}
164162
key: DD_SECRET_KEY
165163
optional: true
164+
{{- with .Values.extraEnv }}
165+
{{- . | toYaml | nindent 8 }}
166+
{{- end }}
166167
{{- with .Values.celery.beat.extraEnv }}
167168
{{- . | toYaml | nindent 8 }}
168169
{{- end }}

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,10 @@ metadata:
1313
{{- with .Values.extraLabels }}
1414
{{- toYaml . | nindent 4 }}
1515
{{- end }}
16-
{{- if .Values.celery.annotations }}
16+
{{- with .Values.celery.worker.annotations }}
1717
annotations:
18-
{{- with .Values.celery.annotations }}
19-
{{- toYaml . | nindent 4 }}
20-
{{- end }}
21-
{{- end }}
18+
{{- toYaml . | nindent 4 }}
19+
{{- end }}
2220
spec:
2321
replicas: {{ .Values.celery.worker.replicas }}
2422
{{- if .Values.revisionHistoryLimit }}
@@ -158,6 +156,9 @@ spec:
158156
name: {{ $fullName }}
159157
key: DD_SECRET_KEY
160158
optional: true
159+
{{- with .Values.extraEnv }}
160+
{{- . | toYaml | nindent 8 }}
161+
{{- end }}
161162
{{- with .Values.celery.worker.extraEnv }}
162163
{{- . | toYaml | nindent 8 }}
163164
{{- end }}

helm/defectdojo/templates/django-deployment.yaml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,10 @@ metadata:
1212
{{- with .Values.extraLabels }}
1313
{{- toYaml . | nindent 4 }}
1414
{{- end }}
15-
{{- if .Values.django.annotations }}
15+
{{- with .Values.django.annotations }}
1616
annotations:
17-
{{- with .Values.django.annotations }}
18-
{{- toYaml . | nindent 4 }}
19-
{{- end }}
20-
{{- end }}
17+
{{- toYaml . | nindent 4 }}
18+
{{- end }}
2119
spec:
2220
replicas: {{ .Values.django.replicas }}
2321
{{- with .Values.django.strategy }}
@@ -211,6 +209,9 @@ spec:
211209
value: {{- if or .Values.django.ingress.activateTLS .Values.django.nginx.tls.enabled }} "True" {{- else }} "False" {{- end }}
212210
- name: DD_CSRF_COOKIE_SECURE
213211
value: {{- if or .Values.django.ingress.activateTLS .Values.django.nginx.tls.enabled }} "True" {{- else }} "False" {{- end }}
212+
{{- with .Values.extraEnv }}
213+
{{- . | toYaml | nindent 8 }}
214+
{{- end }}
214215
{{- with .Values.django.uwsgi.extraEnv }}
215216
{{- . | toYaml | nindent 8 }}
216217
{{- end }}
@@ -264,6 +265,9 @@ spec:
264265
value: '{{ .Values.django.nginx.tls.enabled }}'
265266
- name: GENERATE_TLS_CERTIFICATE
266267
value: '{{ .Values.django.nginx.tls.generateCertificate }}'
268+
{{- with .Values.extraEnv }}
269+
{{- . | toYaml | nindent 8 }}
270+
{{- end }}
267271
{{- with .Values.django.nginx.extraEnv }}
268272
{{- . | toYaml | nindent 8 }}
269273
{{- end }}

helm/defectdojo/values.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---
1+
---
22
# Global settings
33
# create defectdojo specific secret
44
createSecret: false
@@ -492,6 +492,15 @@ redis:
492492
# DD_SOCIAL_AUTH_AUTH0_SECRET: 'xxx'
493493
extraConfigs: {}
494494

495+
# To add (or override) extra variables which need to be pulled from another configMap, you can
496+
# use extraEnv. For example:
497+
# extraEnv:
498+
# - name: DD_DATABASE_HOST
499+
# valueFrom:
500+
# configMapKeyRef:
501+
# name: my-other-postgres-configmap
502+
# key: cluster_endpoint
503+
495504
# To add code snippet which would extend setting functionality, you might add it here
496505
# It will be stored as ConfigMap and mounted `dojo/settings/local_settings.py`.
497506
# For more see: https://documentation.defectdojo.com/getting_started/configuration/

0 commit comments

Comments
 (0)