feat(api): changed alerts_build script

feat(api): changed alerts.yaml
feat(api): changed templates/alerts.yaml
This commit is contained in:
Taha Yassine Kraiem 2022-01-10 14:44:50 +01:00
parent 56717e4f6b
commit 141cb95b10
4 changed files with 48 additions and 4 deletions

View file

@ -20,6 +20,7 @@ function make_submodule() {
# -- end of generated part
cp -R ./{Dockerfile.alerts,requirements_alerts.txt,.env.default,entrypoint.sh} ./alerts/
cp ./chalicelib/utils/html ./alerts/chalicelib/utils/html
}
git_sha1=${IMAGE_TAG:-$(git rev-parse HEAD)}

View file

@ -1,6 +1,7 @@
requests==2.26.0
urllib3==1.26.6
boto3==1.16.1
pyjwt==1.7.1
psycopg2-binary==2.8.6

View file

@ -22,7 +22,25 @@ resources:
memory: 1Mi
env:
ALERT_NOTIFICATION_STRING: http://chalice-openreplay.app.svc.cluster.local:8000/alerts/notifications
CLICKHOUSE_STRING: tcp://clickhouse.db.svc.cluster.local:9000/default
POSTGRES_STRING: postgres://postgres:asayerPostgres@postgresql.db.svc.cluster.local:5432
pg_host: postgresql.db.svc.cluster.local
pg_port: 5432
pg_dbname: postgres
pg_user: postgres
pg_password: asayerPostgres
EMAIL_HOST: ''
EMAIL_PORT: '587'
EMAIL_USER: ''
EMAIL_PASSWORD: ''
EMAIL_USE_TLS: 'true'
EMAIL_USE_SSL: 'false'
EMAIL_SSL_KEY: ''
EMAIL_SSL_CERT: ''
EMAIL_FROM: OpenReplay<do-not-reply@openreplay.com>
SITE_URL: ''
S3_HOST: 'http://minio.db.svc.cluster.local:9000'
S3_KEY: minios3AccessKeyS3cr3t
S3_SECRET: m1n10s3CretK3yPassw0rd
AWS_DEFAULT_REGION: us-east-1
LICENSE_KEY: ""
PYTHONUNBUFFERED: '0'
version_number: '1.3.6'

View file

@ -4,8 +4,32 @@ image:
tag: {{ image_tag }}
{% endif %}
env:
S3_KEY: "{{ minio_access_key }}"
S3_SECRET: "{{ minio_secret_key }}"
SITE_URL: "https://{{ domain_name }}"
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 }}"
LICENSE_KEY: "{{ enterprise_edition_license }}"
POSTGRES_STRING: "postgres://{{postgres_db_user}}:{{postgres_db_password}}@{{postgres_endpoint}}:{{postgres_port}}/{{ postgres_db_name }}"
# In case of minio, the instance is running inside kuberntes,
# which is accessible via nginx ingress.
{% if s3_endpoint == "http://minio.db.svc.cluster.local:9000" %}
S3_HOST: "https://{{ domain_name }}"
{% else %}
S3_HOST: "{{ s3_endpoint }}"
{% endif %}
{% if not (docker_registry_username is defined and docker_registry_username and docker_registry_password is defined and docker_registry_password) %}
imagePullSecrets: []