Skip to content

Commit 0d7f0e0

Browse files
authored
feat(helm): Improve description about images/tags (#13473)
1 parent c7a3600 commit 0d7f0e0

File tree

4 files changed

+49
-42
lines changed

4 files changed

+49
-42
lines changed

helm/defectdojo/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ annotations:
3838
- kind: changed
3939
description: DRY cloudsql-proxy
4040
- kind: changed
41-
description: Each component allow to specific image + allow digest pinning
41+
description: Each component allow to specific image + allow digest pinning + allow different tags for Django and Nginx
4242
- kind: added
4343
description: Convert existing comments to descriptors
4444
- kind: added

helm/defectdojo/README.md

Lines changed: 11 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -534,10 +534,7 @@ A Helm chart for Kubernetes to install DefectDojo
534534
| celery.beat.extraInitContainers | list | `[]` | A list of additional initContainers to run before celery beat containers. |
535535
| celery.beat.extraVolumeMounts | list | `[]` | Array of additional volume mount points for the celery beat containers. |
536536
| celery.beat.extraVolumes | list | `[]` | A list of extra volumes to mount @type: array<map> |
537-
| celery.beat.image.digest | string | `""` | |
538-
| celery.beat.image.registry | string | `""` | |
539-
| celery.beat.image.repository | string | `""` | |
540-
| celery.beat.image.tag | string | `""` | |
537+
| celery.beat.image | object | `{"digest":"","registry":"","repository":"","tag":""}` | If empty, uses values from images.django.image |
541538
| celery.beat.livenessProbe | object | `{}` | Enable liveness probe for Celery beat container. ``` exec: command: - bash - -c - celery -A dojo inspect ping -t 5 initialDelaySeconds: 30 periodSeconds: 60 timeoutSeconds: 10 ``` |
542539
| celery.beat.nodeSelector | object | `{}` | |
543540
| celery.beat.podAnnotations | object | `{}` | Annotations for the Celery beat pods. |
@@ -561,10 +558,7 @@ A Helm chart for Kubernetes to install DefectDojo
561558
| celery.worker.extraInitContainers | list | `[]` | A list of additional initContainers to run before celery worker containers. |
562559
| celery.worker.extraVolumeMounts | list | `[]` | Array of additional volume mount points for the celery worker containers. |
563560
| celery.worker.extraVolumes | list | `[]` | A list of extra volumes to mount. @type: array<map> |
564-
| celery.worker.image.digest | string | `""` | |
565-
| celery.worker.image.registry | string | `""` | |
566-
| celery.worker.image.repository | string | `""` | |
567-
| celery.worker.image.tag | string | `""` | |
561+
| celery.worker.image | object | `{"digest":"","registry":"","repository":"","tag":""}` | If empty, uses values from images.django.image |
568562
| celery.worker.livenessProbe | object | `{}` | Enable liveness probe for Celery worker containers. ``` exec: command: - bash - -c - celery -A dojo inspect ping -t 5 initialDelaySeconds: 30 periodSeconds: 60 timeoutSeconds: 10 ``` |
569563
| celery.worker.nodeSelector | object | `{}` | |
570564
| celery.worker.podAnnotations | object | `{}` | Annotations for the Celery beat pods. |
@@ -595,10 +589,7 @@ A Helm chart for Kubernetes to install DefectDojo
595589
| dbMigrationChecker.enabled | bool | `true` | Enable/disable the DB migration checker. |
596590
| dbMigrationChecker.extraEnv | list | `[]` | Additional environment variables for DB migration checker. |
597591
| dbMigrationChecker.extraVolumeMounts | list | `[]` | Array of additional volume mount points for DB migration checker. |
598-
| dbMigrationChecker.image.digest | string | `""` | |
599-
| dbMigrationChecker.image.registry | string | `""` | |
600-
| dbMigrationChecker.image.repository | string | `""` | |
601-
| dbMigrationChecker.image.tag | string | `""` | |
592+
| dbMigrationChecker.image | object | `{"digest":"","registry":"","repository":"","tag":""}` | If empty, uses values from images.django.image |
602593
| dbMigrationChecker.resources | object | `{"limits":{"cpu":"200m","memory":"200Mi"},"requests":{"cpu":"100m","memory":"100Mi"}}` | Resource requests/limits for the DB migration checker. |
603594
| disableHooks | bool | `false` | Avoid using pre-install hooks, which might cause issues with ArgoCD |
604595
| django.affinity | object | `{}` | |
@@ -623,10 +614,7 @@ A Helm chart for Kubernetes to install DefectDojo
623614
| django.nginx.containerSecurityContext.runAsUser | int | `1001` | nginx dockerfile sets USER=1001 |
624615
| django.nginx.extraEnv | list | `[]` | To extra environment variables to the nginx container, you can use extraEnv. For example: extraEnv: - name: FOO valueFrom: configMapKeyRef: name: foo key: bar |
625616
| django.nginx.extraVolumeMounts | list | `[]` | Array of additional volume mount points for nginx containers. |
626-
| django.nginx.image.digest | string | `""` | |
627-
| django.nginx.image.registry | string | `""` | |
628-
| django.nginx.image.repository | string | `""` | |
629-
| django.nginx.image.tag | string | `""` | |
617+
| django.nginx.image | object | `{"digest":"","registry":"","repository":"","tag":""}` | If empty, uses values from images.nginx.image |
630618
| django.nginx.resources.limits.cpu | string | `"2000m"` | |
631619
| django.nginx.resources.limits.memory | string | `"256Mi"` | |
632620
| django.nginx.resources.requests.cpu | string | `"100m"` | |
@@ -651,10 +639,7 @@ A Helm chart for Kubernetes to install DefectDojo
651639
| django.uwsgi.enableDebug | bool | `false` | this also requires DD_DEBUG to be set to True |
652640
| django.uwsgi.extraEnv | list | `[]` | To add (or override) extra variables which need to be pulled from another configMap, you can use extraEnv. For example: extraEnv: - name: DD_DATABASE_HOST valueFrom: configMapKeyRef: name: my-other-postgres-configmap key: cluster_endpoint |
653641
| django.uwsgi.extraVolumeMounts | list | `[]` | Array of additional volume mount points for uwsgi containers. |
654-
| django.uwsgi.image.digest | string | `""` | |
655-
| django.uwsgi.image.registry | string | `""` | |
656-
| django.uwsgi.image.repository | string | `""` | |
657-
| django.uwsgi.image.tag | string | `""` | |
642+
| django.uwsgi.image | object | `{"digest":"","registry":"","repository":"","tag":""}` | If empty, uses values from images.django.image |
658643
| django.uwsgi.livenessProbe.enabled | bool | `true` | Enable liveness checks on uwsgi container. |
659644
| django.uwsgi.livenessProbe.failureThreshold | int | `6` | |
660645
| django.uwsgi.livenessProbe.initialDelaySeconds | int | `0` | |
@@ -689,25 +674,22 @@ A Helm chart for Kubernetes to install DefectDojo
689674
| host | string | `"defectdojo.default.minikube.local"` | Primary hostname of instance |
690675
| imagePullPolicy | string | `"Always"` | |
691676
| imagePullSecrets | string | `nil` | When using a private registry, name of the secret that holds the registry secret (eg deploy token from gitlab-ci project) Create secrets as: kubectl create secret docker-registry defectdojoregistrykey --docker-username=registry_username --docker-password=registry_password --docker-server='https://index.docker.io/v1/' |
692-
| images.django.image.digest | string | `""` | |
677+
| images.django.image.digest | string | `""` | Prefix "sha@" is expected in this place |
693678
| images.django.image.registry | string | `""` | |
694679
| images.django.image.repository | string | `"defectdojo/defectdojo-django"` | |
695-
| images.django.image.tag | string | `""` | |
696-
| images.nginx.image.digest | string | `""` | |
680+
| images.django.image.tag | string | `""` | If empty, use appVersion. Another possible values are: latest, X.X.X, X.X.X-debian, X.X.X-alpine (where X.X.X is version of DD). For dev builds (only for testing purposes): nightly-dev, nightly-dev-debian, nightly-dev-alpine. To see all, check https://hub.docker.com/r/defectdojo/defectdojo-django/tags. |
681+
| images.nginx.image.digest | string | `""` | Prefix "sha@" is expected in this place |
697682
| images.nginx.image.registry | string | `""` | |
698683
| images.nginx.image.repository | string | `"defectdojo/defectdojo-nginx"` | |
699-
| images.nginx.image.tag | string | `""` | |
684+
| images.nginx.image.tag | string | `""` | If empty, use appVersion. Another possible values are: latest, X.X.X, X.X.X-alpine (where X.X.X is version of DD). For dev builds (only for testing purposes): nightly-dev, nightly-dev-alpine. To see all, check https://hub.docker.com/r/defectdojo/defectdojo-nginx/tags. |
700685
| initializer.affinity | object | `{}` | |
701686
| initializer.annotations | object | `{}` | |
702687
| initializer.automountServiceAccountToken | bool | `false` | |
703688
| initializer.containerSecurityContext | object | `{}` | Container security context for the initializer Job container |
704689
| initializer.extraEnv | list | `[]` | Additional environment variables injected to the initializer job pods. |
705690
| initializer.extraVolumeMounts | list | `[]` | Array of additional volume mount points for the initializer job (init)containers. |
706691
| initializer.extraVolumes | list | `[]` | A list of extra volumes to attach to the initializer job pods. |
707-
| initializer.image.digest | string | `""` | |
708-
| initializer.image.registry | string | `""` | |
709-
| initializer.image.repository | string | `""` | |
710-
| initializer.image.tag | string | `""` | |
692+
| initializer.image | object | `{"digest":"","registry":"","repository":"","tag":""}` | If empty, uses values from images.django.image |
711693
| initializer.jobAnnotations | object | `{}` | |
712694
| initializer.keepSeconds | int | `60` | A positive integer will keep this Job and Pod deployed for the specified number of seconds, after which they will be removed. For all other values, the Job and Pod will remain deployed. |
713695
| initializer.labels | object | `{}` | |
@@ -759,10 +741,7 @@ A Helm chart for Kubernetes to install DefectDojo
759741
| serviceAccount.name | string | `""` | The name of the service account to use. If not set and create is true, a name is generated using the fullname template |
760742
| siteUrl | string | `""` | The full URL to your defectdojo instance, depends on the domain where DD is deployed, it also affects links in Jira. Use syntax: `siteUrl: 'https://<yourdomain>'` |
761743
| tests.unitTests.automountServiceAccountToken | bool | `false` | |
762-
| tests.unitTests.image.digest | string | `""` | |
763-
| tests.unitTests.image.registry | string | `""` | |
764-
| tests.unitTests.image.repository | string | `""` | |
765-
| tests.unitTests.image.tag | string | `""` | |
744+
| tests.unitTests.image | object | `{"digest":"","registry":"","repository":"","tag":""}` | If empty, uses values from images.django.image |
766745
| tests.unitTests.resources.limits.cpu | string | `"500m"` | |
767746
| tests.unitTests.resources.limits.memory | string | `"512Mi"` | |
768747
| tests.unitTests.resources.requests.cpu | string | `"100m"` | |

helm/defectdojo/values.schema.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
"type": "array"
7777
},
7878
"image": {
79+
"description": "If empty, uses values from images.django.image",
7980
"type": "object",
8081
"properties": {
8182
"digest": {
@@ -199,6 +200,7 @@
199200
"type": "array"
200201
},
201202
"image": {
203+
"description": "If empty, uses values from images.django.image",
202204
"type": "object",
203205
"properties": {
204206
"digest": {
@@ -364,6 +366,7 @@
364366
"type": "array"
365367
},
366368
"image": {
369+
"description": "If empty, uses values from images.django.image",
367370
"type": "object",
368371
"properties": {
369372
"digest": {
@@ -531,6 +534,7 @@
531534
"type": "array"
532535
},
533536
"image": {
537+
"description": "If empty, uses values from images.nginx.image",
534538
"type": "object",
535539
"properties": {
536540
"digest": {
@@ -677,6 +681,7 @@
677681
"type": "array"
678682
},
679683
"image": {
684+
"description": "If empty, uses values from images.django.image",
680685
"type": "object",
681686
"properties": {
682687
"digest": {
@@ -858,6 +863,7 @@
858863
"type": "object",
859864
"properties": {
860865
"digest": {
866+
"description": "Prefix \"sha@\" is expected in this place",
861867
"type": "string"
862868
},
863869
"registry": {
@@ -867,6 +873,7 @@
867873
"type": "string"
868874
},
869875
"tag": {
876+
"description": "If empty, use appVersion. Another possible values are: latest, X.X.X, X.X.X-debian, X.X.X-alpine (where X.X.X is version of DD). For dev builds (only for testing purposes): nightly-dev, nightly-dev-debian, nightly-dev-alpine. To see all, check https://hub.docker.com/r/defectdojo/defectdojo-django/tags.",
870877
"type": "string"
871878
}
872879
}
@@ -880,6 +887,7 @@
880887
"type": "object",
881888
"properties": {
882889
"digest": {
890+
"description": "Prefix \"sha@\" is expected in this place",
883891
"type": "string"
884892
},
885893
"registry": {
@@ -889,6 +897,7 @@
889897
"type": "string"
890898
},
891899
"tag": {
900+
"description": "If empty, use appVersion. Another possible values are: latest, X.X.X, X.X.X-alpine (where X.X.X is version of DD). For dev builds (only for testing purposes): nightly-dev, nightly-dev-alpine. To see all, check https://hub.docker.com/r/defectdojo/defectdojo-nginx/tags.",
892901
"type": "string"
893902
}
894903
}
@@ -926,6 +935,7 @@
926935
"type": "array"
927936
},
928937
"image": {
938+
"description": "If empty, uses values from images.django.image",
929939
"type": "object",
930940
"properties": {
931941
"digest": {
@@ -1353,6 +1363,7 @@
13531363
"type": "boolean"
13541364
},
13551365
"image": {
1366+
"description": "If empty, uses values from images.django.image",
13561367
"type": "object",
13571368
"properties": {
13581369
"digest": {

helm/defectdojo/values.yaml

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,23 @@ images:
3232
image:
3333
registry: ""
3434
repository: defectdojo/defectdojo-django
35-
tag: "" # If empty, use appVersion
35+
# -- If empty, use appVersion.
36+
# Another possible values are: latest, X.X.X, X.X.X-debian, X.X.X-alpine (where X.X.X is version of DD).
37+
# For dev builds (only for testing purposes): nightly-dev, nightly-dev-debian, nightly-dev-alpine.
38+
# To see all, check https://hub.docker.com/r/defectdojo/defectdojo-django/tags.
39+
tag: ""
40+
# -- Prefix "sha@" is expected in this place
3641
digest: ""
3742
nginx:
3843
image:
3944
registry: ""
4045
repository: defectdojo/defectdojo-nginx
41-
tag: "" # If empty, use appVersion
46+
# -- If empty, use appVersion.
47+
# Another possible values are: latest, X.X.X, X.X.X-alpine (where X.X.X is version of DD).
48+
# For dev builds (only for testing purposes): nightly-dev, nightly-dev-alpine.
49+
# To see all, check https://hub.docker.com/r/defectdojo/defectdojo-nginx/tags.
50+
tag: ""
51+
# -- Prefix "sha@" is expected in this place
4252
digest: ""
4353

4454
# -- Enables application network policy
@@ -124,7 +134,8 @@ serviceAccount:
124134
labels: {}
125135

126136
dbMigrationChecker:
127-
image: # If empty, uses values from images.django.image
137+
# -- If empty, uses values from images.django.image
138+
image:
128139
registry: ""
129140
repository: ""
130141
tag: ""
@@ -148,7 +159,8 @@ dbMigrationChecker:
148159

149160
tests:
150161
unitTests:
151-
image: # If empty, uses values from images.django.image
162+
# -- If empty, uses values from images.django.image
163+
image:
152164
registry: ""
153165
repository: ""
154166
tag: ""
@@ -203,7 +215,8 @@ celery:
203215
# -- Common annotations to worker and beat deployments and pods.
204216
annotations: {}
205217
beat:
206-
image: # If empty, uses values from images.django.image
218+
# -- If empty, uses values from images.django.image
219+
image:
207220
registry: ""
208221
repository: ""
209222
tag: ""
@@ -254,7 +267,8 @@ celery:
254267
startupProbe: {}
255268
tolerations: []
256269
worker:
257-
image: # If empty, uses values from images.django.image
270+
# -- If empty, uses values from images.django.image
271+
image:
258272
registry: ""
259273
repository: ""
260274
tag: ""
@@ -335,7 +349,8 @@ django:
335349
# `nginx.ingress.kubernetes.io/proxy-send-timeout: "1800"`
336350
annotations: {}
337351
nginx:
338-
image: # If empty, uses values from images.nginx.image
352+
# -- If empty, uses values from images.nginx.image
353+
image:
339354
registry: ""
340355
repository: ""
341356
tag: ""
@@ -369,7 +384,8 @@ django:
369384
strategy: {}
370385
tolerations: []
371386
uwsgi:
372-
image: # If empty, uses values from images.django.image
387+
# -- If empty, uses values from images.django.image
388+
image:
373389
registry: ""
374390
repository: ""
375391
tag: ""
@@ -475,7 +491,8 @@ initializer:
475491
affinity: {}
476492
nodeSelector: {}
477493
tolerations: []
478-
image: # If empty, uses values from images.django.image
494+
# -- If empty, uses values from images.django.image
495+
image:
479496
registry: ""
480497
repository: ""
481498
tag: ""

0 commit comments

Comments
 (0)