harbor-helm icon indicating copy to clipboard operation
harbor-helm copied to clipboard

ArgoCD unable to sync due to missing PVC properties

Open drewhemm opened this issue 1 year ago • 2 comments

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: image image

Cause: image

Fix: see Files changed.

drewhemm avatar Apr 18 '25 09:04 drewhemm

Proposed fix: https://github.com/goharbor/harbor-helm/pull/2173

drewhemm avatar Apr 18 '25 09:04 drewhemm

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

Image

drewhemm avatar Apr 18 '25 09:04 drewhemm

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.

github-actions[bot] avatar Aug 09 '25 09:08 github-actions[bot]

closed by fixed in :https://github.com/goharbor/harbor-helm/pull/2173

MinerYang avatar Sep 03 '25 10:09 MinerYang