Need to provide existingClaim when upgrade or change values using helm upgrade harbor --namespace image-registry ./harbor, otherwise there will be "device already mounted at" error:
But if fill value at persistence.persistentVolumeClaim.trivy.existingClaim, it also gives error:
helm upgrade harbor --namespace image-registry ./harbor
Error: UPGRADE FAILED: cannot patch "harbor-trivy" with kind StatefulSet: StatefulSet.apps "harbor-trivy" is invalid: spec: Forbidden: updates to statefulset spec for fields other than 'replicas', 'ordinals', 'template', 'updateStrategy', 'persistentVolumeClaimRetentionPolicy' and 'minReadySeconds' are forbidden
while fill this value for registry and jobservice is OK. it is not used and still cause "device already mounted at" for pod
Expected behavior and actual behavior:
Need to provide
existingClaim
when upgrade or change values usinghelm upgrade harbor --namespace image-registry ./harbor
, otherwise there will be "device already mounted at" error:Steps to reproduce the problem:
But if fill value at
persistence.persistentVolumeClaim.trivy.existingClaim
, it also gives error:while fill this value for registry and jobservice is OK. it is not used and still cause "device already mounted at" for pod
Versions:
Additional context: