apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: qodo-prod
  namespace: argocd
spec:
  project: default
  sources:
    - repoURL: artifacts-self-hosted.qodo.ai
      chart: codium-stack/qodo-onprem/qodo-onprem
      targetRevision: REPLACE_WITH_PINNED_CHART_VERSION
      helm:
        releaseName: qodo-prod
        valueFiles:
          - onprem-base.yaml
          - $values/environments/production/my-values.yaml
          # Add optional customer overlays before values-argocd.yaml.
          - values-argocd.yaml
    - repoURL: https://git.example.com/platform/qodo-deployments.git
      targetRevision: REPLACE_WITH_PINNED_VALUES_COMMIT
      ref: values
  destination:
    name: REPLACE_WITH_REGISTERED_CLUSTER_NAME
    namespace: qodo
  ignoreDifferences:
    - group: apps
      kind: Deployment
      jqPathExpressions:
        - '.spec.template.metadata.annotations."qodo.ai/revision"'
        - '.spec.template.metadata.annotations."qodo.ai/zitadel-idp-config"'
        - '.spec.template.metadata.annotations."qodo.ai/ca-bundle-checksum"'
        - '.metadata.annotations."qodo.ai/consumer-prepared-upgrade"'
        - '.spec.template.metadata.annotations."qodo.ai/consumer-preparation-recovery"'
  syncPolicy:
    syncOptions:
      - RespectIgnoreDifferences=true
      - PruneLast=true
