chore(variable): define override variables for s3,pg,kafka etc

This commit is contained in:
Rajesh Rajendran 2021-10-08 00:40:02 +05:30
parent 00ae88b60f
commit 567ee23233
12 changed files with 91 additions and 0 deletions

View file

@ -5,6 +5,7 @@ image:
{% endif %}
env:
LICENSE_KEY: "{{ enterprise_edition_license }}"
POSTGRES_STRING: "postgres://{{postgres_db_user}}:{{postgres_db_password}}@{{postgres_endpoint}}:{{postgres_port}}"
{% if not (docker_registry_username is defined and docker_registry_username and docker_registry_password is defined and docker_registry_password) %}
imagePullSecrets: []

View file

@ -7,6 +7,11 @@ env:
AWS_ACCESS_KEY_ID: "{{ minio_access_key }}"
AWS_SECRET_ACCESS_KEY: "{{ minio_secret_key }}"
LICENSE_KEY: "{{ enterprise_edition_license }}"
AWS_ENDPOINT: "{{ s3_endpoint }}"
AWS_REGION: "{{ aws_region }}"
REDIS_STRING: "{{ redis_endpoint }}"
KAFKA_SERVERS: "{{ kafka_endpoint }}"
KAFKA_USE_SSL: "{{ kafka_ssl }}"
{% if not (docker_registry_username is defined and docker_registry_username and docker_registry_password is defined and docker_registry_password) %}
imagePullSecrets: []

View file

@ -15,6 +15,22 @@ env:
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_port }}"
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_default_region }}"
sessions_region: "{{ aws_default_region }}"
{% if env is defined and env.chalice is defined and env.chalice%}
{{ env.chalice | to_nice_yaml | trim | indent(2) }}
{% endif %}

View file

@ -5,6 +5,10 @@ image:
{% endif %}
env:
LICENSE_KEY: "{{ enterprise_edition_license }}"
POSTGRES_STRING: "postgres://{{ postgres_db_user }}:{{ postgres_password }}@{{ postgres_endpoint }}:{{ postgres_port }}"
REDIS_STRING: "{{ redis_endpoint }}"
KAFKA_SERVERS: "{{ kafka_endpoint }}"
KAFKA_USE_SSL: "{{ kafka_ssl }}"
{% if not (docker_registry_username is defined and docker_registry_username and docker_registry_password is defined and docker_registry_password) %}
imagePullSecrets: []
{% endif %}

View file

@ -5,6 +5,9 @@ image:
{% endif %}
env:
LICENSE_KEY: "{{ enterprise_edition_license }}"
REDIS_STRING: "{{ redis_endpoint }}"
KAFKA_SERVERS: "{{ kafka_endpoint }}"
KAFKA_USE_SSL: "{{ kafka_ssl }}"
{% if not (docker_registry_username is defined and docker_registry_username and docker_registry_password is defined and docker_registry_password) %}
imagePullSecrets: []

View file

@ -7,6 +7,11 @@ env:
AWS_ACCESS_KEY_ID: "{{ minio_access_key }}"
AWS_SECRET_ACCESS_KEY: "{{ minio_secret_key }}"
LICENSE_KEY: "{{ enterprise_edition_license }}"
AWS_REGION: "{{ aws_region }}"
POSTGRES_STRING: "postgres://{{ postgres_db_user }}:{{ postgres_password }}@{{ postgres_endpoint }}:{{ postgres_port }}"
REDIS_STRING: "{{ redis_endpoint }}"
KAFKA_SERVERS: "{{ kafka_endpoint }}"
KAFKA_USE_SSL: "{{ kafka_ssl }}"
{% if not (docker_registry_username is defined and docker_registry_username and docker_registry_password is defined and docker_registry_password) %}
imagePullSecrets: []

View file

@ -5,6 +5,11 @@ image:
{% endif %}
env:
LICENSE_KEY: "{{ enterprise_edition_license }}"
POSTGRES_STRING: "postgres://{{ postgres_db_user }}:{{ postgres_password }}@{{ postgres_endpoint }}:{{ postgres_port }}"
#
REDIS_STRING: "{{ redis_endpoint }}"
KAFKA_SERVERS: "{{ kafka_endpoint }}"
KAFKA_USE_SSL: "{{ kafka_ssl }}"
{% if not (docker_registry_username is defined and docker_registry_username and docker_registry_password is defined and docker_registry_password) %}
imagePullSecrets: []

View file

@ -5,6 +5,9 @@ image:
{% endif %}
env:
LICENSE_KEY: "{{ enterprise_edition_license }}"
REDIS_STRING: "{{ redis_endpoint }}"
KAFKA_SERVERS: "{{ kafka_endpoint }}"
KAFKA_USE_SSL: "{{ kafka_ssl }}"
{% if not (docker_registry_username is defined and docker_registry_username and docker_registry_password is defined and docker_registry_password) %}
imagePullSecrets: []

View file

@ -7,6 +7,12 @@ env:
AWS_ACCESS_KEY_ID: "{{ minio_access_key }}"
AWS_SECRET_ACCESS_KEY: "{{ minio_secret_key }}"
LICENSE_KEY: "{{ enterprise_edition_license }}"
AWS_ENDPOINT: "{{ s3_endpoint }}"
AWS_REGION_WEB: "{{ aws_region }}"
AWS_REGION_IOS: "{{ aws_region }}"
REDIS_STRING: "{{ redis_endpoint }}"
KAFKA_SERVERS: "{{ kafka_endpoint }}"
KAFKA_USE_SSL: "{{ kafka_ssl }}"
{% if not (docker_registry_username is defined and docker_registry_username and docker_registry_password is defined and docker_registry_password) %}
imagePullSecrets: []

View file

@ -12,6 +12,7 @@ env:
S3_SECRET: "{{ minio_secret_key }}"
S3_HOST: "https://{{ domain_name }}"
jwt_secret: "{{ jwt_secret_key }}"
AWS_DEFAULT_REGION: "{{ aws_region }}"
{% if env is defined and env.chalice is defined and env.chalice%}
{{ env.chalice | to_nice_yaml | trim | indent(2) }}
{% endif %}

View file

@ -86,3 +86,24 @@ db_resource_override:
# memory: 256Mi
redis: {}
clickhouse: {}
## Sane defaults
s3_endpoint: "http://minio.db.svc.cluster.local:9000"
aws_region: "us-east-1"
kafka_endpoint: kafka.db.svc.cluster.local:9042
kafka_ssl: false
postgres_endpoint: postgresql.db.svc.cluster.local
postgres_port: 5432
postgres_db_name: postgres
postgres_db_user: postgres
postgres_db_password: asayerPostgres
redis_endpoint: redis-master.db.svc.cluster.local:6379
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>

View file

@ -86,3 +86,24 @@ db_resource_override:
# memory: 256Mi
redis: {{ db_resource_override.redis|default({}) }}
clickhouse: {{ db_resource_override.clickhouse|default({}) }}
## Sane defaults
s3_endpoint: "{{ s3_endpoint }}"
aws_region: "{{ aws_region }}"
kafka_endpoint: "{{ kafka_endpoint }}"
kafka_ssl: "{{ kafka_ssl }}"
postgres_endpoint: "{{ postgres_endpoint }}"
postgres_port: "{{ postgres_port }}"
postgres_db_name: "{{ postgres_db_name }}"
postgres_db_user: "{{ postgres_db_user }}"
postgres_db_password: "{{ postgres_db_password }}"
redis_endpoint: "{{ redis_endpoint }}"
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 }}"