Skip to content

Helm media-pvc nil pointer in 2.52.0 #13640

@VM-Beebly

Description

@VM-Beebly

Bug description

Hello,

After updating defectdojo to the latest version (2.52.0), i get this error while applying the helm chart:
Error: UPGRADE FAILED: template: defectdojo/templates/media-pvc.yaml:7:18: executing "defectdojo/templates/media-pvc.yaml" at <.Values.extraAnnotations>: nil pointer evaluating interface {}.extraAnnotations

I think it's the references in media-pvc.yaml that are incorrect, i fixed it locally by editing the file media-pvc.yaml and adding dollars to source from root at the 3 following place:

  • On line 7: {{- with $.Values.extraAnnotations }}
  • On line 19: {{- range $key, $value := $.Values.extraLabels }}
  • On line 23: namespace: {{ $.Release.Namespace }}

If someone can have a look and confirm i'd be thankful.

Steps to reproduce
Steps to reproduce the behavior:

  • Deploy Defectdojo in version 2.52.0 using the helm chart
  • enable mediaPersistentVolume in the values.yaml
  • set type to pvc and create a persistentVolumeClaim

Deployment method (select with an X)

  • Docker Compose
  • Kubernetes
  • GoDojo

Environment information

  • DefectDojo version 2.52.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions