{% if docker_registry_url is defined and docker_registry_url %}
image:
  repository: {{ docker_registry_url }}
  tag: {{ image_tag }}
{% endif %}

{% if not (docker_registry_username is defined and docker_registry_username and docker_registry_password is defined and docker_registry_password) %}
imagePullSecrets: []
{% endif %}
env:
  S3_KEY: "{{ minio_access_key }}"
  S3_SECRET: "{{ minio_secret_key }}"
  sourcemaps_bucket_key: "{{ minio_access_key }}"
  sourcemaps_bucket_secret: "{{ minio_secret_key }}"
  S3_HOST: "https://{{ domain_name }}"
  SITE_URL: "https://{{ domain_name }}"
  jwt_secret: "{{ jwt_secret_key }}"
  pg_host: "{{ postgres_endpoint }}"
  pg_port: "{{ postgres_port }}"
  pg_dbname: "{{ postgres_db_name }}"
  pg_user: "{{ postgres_db_user }}"
  pg_password: "{{ postgres_db_password }}"
  EMAIL_HOST: "{{ email_host }}"
  EMAIL_PORT: "{{ email_port }}"
  EMAIL_USER: "{{ email_user }}"
  EMAIL_PASSWORD: "{{ email_password }}"
  EMAIL_USE_TLS: "{{ email_use_tls }}"
  EMAIL_USE_SSL: "{{ email_use_ssl }}"
  EMAIL_SSL_KEY: "{{ email_ssl_key }}"
  EMAIL_SSL_CERT: "{{ email_ssl_cert }}"
  EMAIL_FROM: "{{ email_from }}"
  AWS_DEFAULT_REGION: "{{ aws_region }}"
  sessions_region: "{{ aws_region }}"
{% if env is defined and env.chalice is defined and env.chalice%}
  {{ env.chalice | to_nice_yaml | trim | indent(2) }}
{% endif %}
