diff --git a/docs/content/en/getting_started/upgrading/2.12.md b/docs/content/en/getting_started/upgrading/2.12.md index 10bdec5369f..7b444ab8fd8 100644 --- a/docs/content/en/getting_started/upgrading/2.12.md +++ b/docs/content/en/getting_started/upgrading/2.12.md @@ -6,3 +6,22 @@ description: breaking change --- **Breaking change for search:** The field `cve` has been removed from the search index for Findings and the Vulnerability Ids have been added to the search index. With this the syntax to search explicitly for vulnerability ids have been changed from `cve:` to `vulnerability_id:`, e.g. `vulnerability_id:CVE-2020-27619`. +**Upgrade instructions for helm chart with postgres enabled**: The postgres database uses a statefulset by default. Before upgrading the helm chart we have to delete the statefullset and ensure that the pvc is reused, to keep the data. For more information: https://docs.bitnami.com/kubernetes/infrastructure/postgresql/administration/upgrade/ . + +```bash +helm repo update +helm dependency update ./helm/defectdojo + +# obtain name oft the postgres pvc +export POSTGRESQL_PVC=$(kubectl get pvc -l app.kubernetes.io/instance=defectdojo,role=primary -o jsonpath="{.items[0].metadata.name}") + +# delete postgres statefulset +kubectl delete statefulsets.apps defectdojo-postgresql --namespace default --cascade=orphan + +# upgrade +helm upgrade \ + defectdojo \ + ./helm/defectdojo/ \ + --set primary.persistence.existingClaim=$POSTGRESQL_PVC \ + ... # add your custom settings +``` diff --git a/docs/content/en/getting_started/upgrading/2.13.md b/docs/content/en/getting_started/upgrading/2.13.md index 24432b2475a..920e6f999dd 100644 --- a/docs/content/en/getting_started/upgrading/2.13.md +++ b/docs/content/en/getting_started/upgrading/2.13.md @@ -12,26 +12,6 @@ Additionally this requires a one-time rebuild of the Django-Watson search index. `./manage.py buildwatson` -**Upgrade instructions for helm chart with postgres enabled**: The postgres database uses a statefulset by default. Before upgrading the helm chart we have to delete the statefullset and ensure that the pvc is reused, to keep the data. For more information: https://docs.bitnami.com/kubernetes/infrastructure/postgresql/administration/upgrade/ . - -```bash -helm repo update -helm dependency update ./helm/defectdojo - -# obtain name oft the postgres pvc -export POSTGRESQL_PVC=$(kubectl get pvc -l app.kubernetes.io/instance=defectdojo,role=primary -o jsonpath="{.items[0].metadata.name}") - -# delete postgres statefulset -kubectl delete statefulsets.apps defectdojo-postgresql --namespace default --cascade=orphan - -# upgrade -helm upgrade \ - defectdojo \ - ./helm/defectdojo/ \ - --set primary.persistence.existingClaim=$POSTGRESQL_PVC \ - ... # add your custom settings -``` - **Further changes:** Legacy authorization for changing configurations based on staff users has been removed.