{% 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 }}"
  S3_HOST: "https://{{ domain_name }}"
  jwt_secret: "{{ jwt_secret_key }}"
{% if env is defined and env.chalice is defined and env.chalice%}
  {{ env.chalice | to_nice_yaml | trim | indent(2) }}
{% endif %}
