apiVersion: v1
kind: Secret
metadata:
  name: resultsdb-ci-listener-auth
  labels:
    app: resultsdb-ci-listener
data:
{% if env == 'staging' %}
  RESULTSDB_AUTH_BASIC_USERNAME: {{ stg_resultsdb_httpd_user | b64encode }}
  RESULTSDB_AUTH_BASIC_PASSWORD: {{ stg_resultsdb_httpd_password | b64encode }}
{% else %}
  RESULTSDB_AUTH_BASIC_USERNAME: {{ prod_resultsdb_httpd_user | b64encode }}
  RESULTSDB_AUTH_BASIC_PASSWORD: {{ prod_resultsdb_httpd_password | b64encode }}
{% endif %}
