ArgoCD unable to sync due to missing PVC properties
Children of volumeClaimTemplates for Redis, Trivy and Database are missing the manifest properties apiVersion and kind. Kubernetes adds these by default and ArgoCD constantly tries to remove them, making it unable to sync.
Symptoms:
Cause:
Fix: see Files changed.
Proposed fix: https://github.com/goharbor/harbor-helm/pull/2173
Here is a temporary workaround while we wait for the PR to be approved and merged:
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: harbor
namespace: argocd
spec:
destination:
namespace: harbor
server: https://kubernetes.default.svc
# Temporarily ignore differences in StatefulSet volumeClaimTemplates
# apiVersion and kind fields to avoid issues with the Harbor chart.
# Remove once this PR is merged: https://github.com/goharbor/harbor-helm/pull/2173
ignoreDifferences:
- group: apps
kind: StatefulSet
jqPathExpressions:
- .spec.volumeClaimTemplates[].apiVersion
- .spec.volumeClaimTemplates[].kind
This issue is being marked stale due to a period of inactivity. If this issue is still relevant, please comment or remove the stale label. Otherwise, this issue will close in 30 days.
closed by fixed in :https://github.com/goharbor/harbor-helm/pull/2173