diff --git a/argocd-apps/gitea.yaml b/argocd-apps/gitea.yaml index f12f88f..e92df12 100644 --- a/argocd-apps/gitea.yaml +++ b/argocd-apps/gitea.yaml @@ -5,8 +5,10 @@ metadata: namespace: argocd labels: env: dev-tools + spec: project: dev-tools + source: repoURL: 'ssh://git@gitea-ssh.dev-tools.svc.cluster.local:2222/dvirlabs/dev-tools.git' targetRevision: HEAD @@ -14,9 +16,11 @@ spec: helm: valueFiles: - ../../manifests/gitea/values.yaml + destination: server: https://kubernetes.default.svc namespace: dev-tools + syncPolicy: automated: prune: true @@ -24,39 +28,27 @@ spec: syncOptions: - CreateNamespace=true - PrunePropagationPolicy=foreground - - RespectIgnoreDifferences=true + ignoreDifferences: - - group: apps - kind: Deployment - name: gitea - namespace: dev-tools - jqPathExpressions: - - .spec.template.metadata.annotations."kubectl.kubernetes.io/restartedAt" + # StatefulSet → PVC templates are immutable → must ignore - group: apps kind: StatefulSet namespace: dev-tools jsonPointers: - - /status - /spec/volumeClaimTemplates + + # PVC → Kubernetes mutates these fields - group: "" kind: PersistentVolumeClaim namespace: dev-tools jsonPointers: - /status - /spec/volumeName - - /spec/storageClassName - - /metadata/labels - - /metadata/annotations + + # Service → clusterIP is auto-assigned - group: "" kind: Service namespace: dev-tools jsonPointers: - /spec/clusterIP - - /spec/clusterIPs - - group: "" - kind: PersistentVolumeClaim - name: gitea-shared-storage - namespace: dev-tools - jsonPointers: - - /spec/volumeName - - /spec/storageClassName + - /spec/clusterIPs \ No newline at end of file