apiVersion: v1
kind: Secret
metadata:
  name: "transtats-secret"
  labels:
    app: "transtats"
stringData:
{% if env == 'staging' %}
  ts-auth-system: "fedora"
  admin-password: "{{transtats_stg_admin_password}}"
  django-secret-key: "{{transtats_stg_django_secret_key}}"
  database-name: "transtats"
  database-password: "{{transtats_stg_database_password}}"
  oidc_url: "id{{env_suffix}}.fedoraproject.org"
  oidc-client-id: "{{transtats_stg_oidc_id}}"
  oidc-client-secret: "{{transtats_stg_oidc_secret}}"
  database-host: db01.stg.phx2.fedoraproject.org
  database-user: transtats
{% endif %}
{% if env == 'production' %}
  ts-auth-system: "fedora"
  admin-password: "{{transtats_admin_password}}"
  django-secret-key: "{{transtats_django_secret_key}}"
  database-name: "transtats"
  database-password: "{{transtats_database_password}}"
  oidc_url: "id{{env_suffix}}.fedoraproject.org"
  oidc-client-id: "{{transtats_oidc_id}}"
  oidc-client-secret: "{{transtats_oidc_secret}}"
  database-host: db01.phx2.fedoraproject.org
  database-user: transtats
{% endif %}
