Skip to content

Commit e2dbca5

Browse files
authored
fix(helm): Fix PVC templating after #13210 (#13619)
* fix(helm): Typo in description of digests Signed-off-by: kiblik <5609770+kiblik@users.noreply.github.com> * fix(helm): Fix PVC templating after #13210 Signed-off-by: kiblik <5609770+kiblik@users.noreply.github.com> --------- Signed-off-by: kiblik <5609770+kiblik@users.noreply.github.com>
1 parent d4e7513 commit e2dbca5

File tree

5 files changed

+16
-12
lines changed

5 files changed

+16
-12
lines changed

helm/defectdojo/Chart.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,8 @@ dependencies:
3434
# description: Critical bug
3535
annotations:
3636
artifacthub.io/prerelease: "true"
37-
artifacthub.io/changes: ""
37+
artifacthub.io/changes: |
38+
- kind: fixed
39+
description: Broken rendering of media PVC
40+
- kind: fixed
41+
description: Typo in description of digests

helm/defectdojo/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -674,11 +674,11 @@ A Helm chart for Kubernetes to install DefectDojo
674674
| host | string | `"defectdojo.default.minikube.local"` | Primary hostname of instance |
675675
| imagePullPolicy | string | `"Always"` | |
676676
| 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/' |
677-
| images.django.image.digest | string | `""` | Prefix "sha@" is expected in this place |
677+
| images.django.image.digest | string | `""` | Prefix "sha256:" is expected in this place |
678678
| images.django.image.registry | string | `""` | |
679679
| images.django.image.repository | string | `"defectdojo/defectdojo-django"` | |
680680
| 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 |
681+
| images.nginx.image.digest | string | `""` | Prefix "sha256:" is expected in this place |
682682
| images.nginx.image.registry | string | `""` | |
683683
| images.nginx.image.repository | string | `"defectdojo/defectdojo-nginx"` | |
684684
| 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. |

helm/defectdojo/templates/media-pvc.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
apiVersion: v1
55
kind: PersistentVolumeClaim
66
metadata:
7-
{{- with .Values.extraAnnotations }}
7+
{{- with $.Values.extraAnnotations }}
88
annotations:
99
{{- range $key, $value := . }}
1010
{{ $key }}: {{ quote $value }}
@@ -16,19 +16,19 @@ metadata:
1616
app.kubernetes.io/instance: {{ $.Release.Name }}
1717
app.kubernetes.io/managed-by: {{ $.Release.Service }}
1818
helm.sh/chart: {{ include "defectdojo.chart" $ }}
19-
{{- range $key, $value := .Values.extraLabels }}
19+
{{- range $key, $value := $.Values.extraLabels }}
2020
{{ $key }}: {{ quote $value }}
2121
{{- end }}
2222
name: {{ $fullName }}
23-
namespace: {{ .Release.Namespace }}
23+
namespace: {{ $.Release.Namespace }}
2424
spec:
2525
accessModes:
2626
{{- toYaml .persistentVolumeClaim.accessModes | nindent 4 }}
2727
resources:
2828
requests:
2929
storage: {{ .persistentVolumeClaim.size }}
30-
{{- if .persistentVolumeClaim.storageClassName }}
31-
storageClassName: {{ .persistentVolumeClaim.storageClassName }}
30+
{{- with .persistentVolumeClaim.storageClassName }}
31+
storageClassName: {{ . }}
3232
{{- end }}
3333
{{- end }}
3434
{{- end }}

helm/defectdojo/values.schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@
865865
"type": "object",
866866
"properties": {
867867
"digest": {
868-
"description": "Prefix \"sha@\" is expected in this place",
868+
"description": "Prefix \"sha256:\" is expected in this place",
869869
"type": "string"
870870
},
871871
"registry": {
@@ -889,7 +889,7 @@
889889
"type": "object",
890890
"properties": {
891891
"digest": {
892-
"description": "Prefix \"sha@\" is expected in this place",
892+
"description": "Prefix \"sha256:\" is expected in this place",
893893
"type": "string"
894894
},
895895
"registry": {

helm/defectdojo/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ images:
3737
# For dev builds (only for testing purposes): nightly-dev, nightly-dev-debian, nightly-dev-alpine.
3838
# To see all, check https://hub.docker.com/r/defectdojo/defectdojo-django/tags.
3939
tag: ""
40-
# -- Prefix "sha@" is expected in this place
40+
# -- Prefix "sha256:" is expected in this place
4141
digest: ""
4242
nginx:
4343
image:
@@ -48,7 +48,7 @@ images:
4848
# For dev builds (only for testing purposes): nightly-dev, nightly-dev-alpine.
4949
# To see all, check https://hub.docker.com/r/defectdojo/defectdojo-nginx/tags.
5050
tag: ""
51-
# -- Prefix "sha@" is expected in this place
51+
# -- Prefix "sha256:" is expected in this place
5252
digest: ""
5353

5454
# -- Enables application network policy

0 commit comments

Comments
 (0)