apiVersion: v1
kind: ConfigMap
metadata:
  name: argocd-cm  # Don't change this name as it is used by argocd
  labels:
    app.kubernetes.io/name: argo-cm
    app.kubernetes.io/part-of: argocd
data:
  # Argo CD's externally facing base URL (optional). Required when configuring SSO
  url: https://deployment.biosimulations.org

  # Enables application status badge feature
  statusbadge.enabled: "true"

  # Enables anonymous user access. The anonymous users get default role permissions specified argocd-rbac-cm.yaml.
  users.anonymous.enabled: "false"
  # Specifies token expiration duration
  users.session.duration: "24h"

  # Enables google analytics tracking is specified
  #ga.trackingid: ""
  # Unless set to 'false' then user ids are hashed before sending to google analytics
  #ga.anonymizeusers: "false"

  # the URL for getting chat help, this will typically be your Slack channel for support
  #help.chatUrl: "https://mycorp.slack.com/argo-cd"
  # the text for getting chat help, defaults to "Chat now!"
  #`help.chatText: "Chat now!"

  # A dex connector configuration (optional). See SSO configuration documentation:
  # https://github.com/argoproj/argo-cd/blob/master/docs/operator-manual/sso
  # https://github.com/dexidp/dex/tree/master/Documentation/connectors
  dex.config: |
    connectors:
      # GitHub example
      - type: github
        id: github
        name: GitHub
        config:
          clientID: 91b0af261e580cdeb547
          clientSecret: $dex.github.clientSecret
          orgs:
          - name: biosimulations
            teams:
            - Biosimulations-Deployments
            - Biosimulations-Software

  # OIDC configuration as an alternative to dex (optional).
  #oidc.config: |
  #  name: Okta
  #  issuer: https://dev-123456.oktapreview.com
  #  clientID: aaaabbbbccccddddeee
  #  clientSecret: $oidc.okta.clientSecret
  #  # Optional set of OIDC scopes to request. If omitted, defaults to: ["openid", "profile", "email", "groups"]
  #  requestedScopes: ["openid", "profile", "email"]
  #  # Optional set of OIDC claims to request on the ID token.
  #  requestedIDTokenClaims: {"groups": {"essential": true}}

  # Configuration to completely ignore entire classes of resource group/kinds (optional).
  # Excluding high-volume resources improves performance and memory usage, and reduces load and
  # bandwidth to the Kubernetes API server.
  # These are globs, so a "*" will match all values.
  # If you omit groups/kinds/clusters then they will match all groups/kind/clusters.
  # NOTE: events.k8s.io and metrics.k8s.io are excluded by default

  # Build options/parameters to use with `kustomize build` (optional)
  kustomize.buildOptions: --load-restrictor LoadRestrictionsNone


  # Additional Kustomize versions and corresponding binary paths
  #$kustomize.version.v3.5.1: /custom-tools/kustomize_3_5_1
  #kustomize.version.v3.5.4: /custom-tools/kustomize_3_5_4

  # The metadata.label key name where Argo CD injects the app name as a tracking label (optional).
  # Tracking labels are used to determine which resources need to be deleted when pruning.
  # If omitted, Argo CD injects the app name into the label: 'app.kubernetes.io/instance'
  #application.instanceLabelKey: mycompany.com/appname

  # disables admin user. Admin is enabled by default
  admin.enabled: "false"
  # add an additional local user with apiKey and login capabilities
  #   apiKey - allows generating API keys
  #   login - allows to login using UI

  # disables user. User is enabled by default

  # The location of optional user-defined CSS that is loaded at runtime.
  # Local CSS Files:
  # - If the supplied path is to a file mounted on the argocd-server container, that file should be mounted
  #   within a subdirectory of the existing "/shared/app" directory (e.g. "/shared/app/custom").  Otherwise,
  #   the file will likely fail to be imported by the browser with an "incorrect MIME type" error.
  # - The path should be specified relative to the "/shared/app" directory; not as an absolute path.
  # Remote CSS Files:
  # - Files may also be loaded from remote locations via fully qualified URLs.
  ui.cssurl: "https://static.biosimulations.org/stylesheets/biosimulations_argo.css"

  # An optional user-defined banner message that's displayed at the top of every UI page.
  # Every time this is updated, it will clear a user's localStorage telling the UI to hide the banner forever.
  ui.bannercontent: "Welcome to Biosimulations Deployments!"
  # Optional link for banner. If set, the entire banner text will become a link.
  # You can have bannercontent without a bannerurl, but not the other way around.
  ui.bannerurl: "https://github.com/Biosimulations"
