apiVersion: v1
kind: ConfigMap
metadata:
  name: argocd-cm
data:
  url: https://argo.k8s.io
  application.instanceLabelKey: infra.k8s.io/instance
  resource.compareoptions: |
    ignoreAggregatedRoles: true
  resource.customizations: |
    admissionregistration.k8s.io/MutatingWebhookConfiguration:
      ignoreDifferences: |
        jqPathExpressions:
        - '.webhooks[]?.clientConfig.caBundle'
  kustomize.buildOptions: --load-restrictor LoadRestrictionsNone --enable-alpha-plugins
  dex.config: |
    connectors:
      - type: authproxy
        id: oauth2-proxy
        name: OAuth2 Proxy
        config:
          userHeader: X-Auth-Request-Email
          groupHeader: X-Auth-Request-Groups
          userIDHeader: X-Auth-Request-User
