Files
cozystack/packages/apps
Yan Bondarenko 1ca2a943cf fix(harbor): keep the trivy volume class of the live StatefulSet
A Harbor with trivy enabled and no storageClass could not be changed
after install: the next upgrade of the release failed with

  StatefulSet.apps "<release>-trivy" is invalid: spec: Forbidden: updates
  to statefulset spec for fields other than 'replicas', 'ordinals',
  'template', 'updateStrategy', 'revisionHistoryLimit',
  'persistentVolumeClaimRetentionPolicy' and 'minReadySeconds' are
  forbidden

The chart took the class for the trivy volumeClaimTemplate from the
data-<release>-trivy-0 PVC. The default-StorageClass admission stamps
the class onto that PVC but never onto the StatefulSet, so the render
put a class into a template created without one. Read the class from
the template of the live StatefulSet instead.

Fixes: bdf520bf74 ("fix(harbor): preserve jobservice and trivy storageClass on upgrade")
Assisted-by: LLM
Signed-off-by: Yan Bondarenko <202671653+yankawai@users.noreply.github.com>
2026-12-01 19:28:46 +01:00
..
2026-11-27 18:22:11 +05:00
2025-08-07 14:07:05 +03:00

How to test packages local

cd packages/core/installer
make image-cozystack REGISTRY=YOUR_CUSTOM_REGISTRY
make apply
kubectl delete po -l app=source-controller -n cozy-fluxcd