FMN: adjust the config file to the recent code changes, again

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
Aurélien Bompard
2023-01-30 16:56:19 +01:00
parent 690882f5e4
commit 35b35127e4
3 changed files with 10 additions and 2 deletions

View File

@@ -241,6 +241,11 @@ spec:
secretKeyRef:
name: fmn
key: redis-password
- name: CACHE__ARGUMENTS__HASH_KEY
valueFrom:
secretKeyRef:
name: fmn
key: cache-hash-key
volumes:
- name: etc-fmn
configMap:

View File

@@ -7,5 +7,6 @@ OIDC_CLIENT_ID="fmn"
# OIDC_CLIENT_SECRET is set in the environement by the deploymentconfig
SERVICES__FASJSON_URL=https://fasjson{{ env_suffix }}.fedoraproject.org
SERVICES__DISTGIT_URL=https://src{{ env_suffix }}.fedoraproject.org
CACHE__BACKEND="dogpile.cache.redis"
CACHE__ARGUMENTS__HOST="redis.fmn.svc.cluster.local"
CACHE__URL="rediss://redis.fmn.svc.cluster.local/"
CACHE__ARGUMENTS__DB="1"
CACHE__ARGUMENTS__DIGESTMOD="sha1"

View File

@@ -7,7 +7,9 @@ stringData:
{% if env == 'staging' %}
oidc-client-secret: {{ fmn_stg_oidc_client_secret }}
redis-password: {{ fmn_stg_redis_password }}
cache-hash-key: {{ fmn_stg_cache_hash_key }}
{% else %}
oidc-client-secret: {{ fmn_prod_oidc_client_secret }}
redis-password: {{ fmn_prod_redis_password }}
cache-hash-key: {{ fmn_prod_cache_hash_key }}
{% endif %}