Conserve sentinel_master_set value between upgraded versions (#18875)

fix(migration): Conserve sentinel_master_set value between upgraded versions

Signed-off-by: Alexis Leroux <alexis.leroux@worldline.com>
Co-authored-by: Alexis Leroux <alexis.leroux@worldline.com>
Co-authored-by: MinerYang <yminer@vmware.com>
This commit is contained in:
Alexis Leroux 2023-07-27 12:35:01 +02:00 committed by GitHub
parent 3af605eedc
commit 84a131773a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 36 additions and 0 deletions

View File

@ -326,7 +326,11 @@ external_redis:
host: {{ external_redis.host }}:{{ external_redis.port }}
password: {{ external_redis.password }}
# sentinel_master_set must be set to support redis+sentinel
{% if external_redis.sentinel_master_set is defined %}
sentinel_master_set: {{ external_redis.sentinel_master_set }}
{% else %}
#sentinel_master_set:
{% endif %}
# db_index 0 is for core, it's unchangeable
registry_db_index: {{ external_redis.registry_db_index }}
jobservice_db_index: {{ external_redis.jobservice_db_index }}

View File

@ -376,7 +376,11 @@ external_redis:
host: {{ external_redis.host }}:{{ external_redis.port }}
password: {{ external_redis.password }}
# sentinel_master_set must be set to support redis+sentinel
{% if external_redis.sentinel_master_set is defined %}
sentinel_master_set: {{ external_redis.sentinel_master_set }}
{% else %}
#sentinel_master_set:
{% endif %}
# db_index 0 is for core, it's unchangeable
registry_db_index: {{ external_redis.registry_db_index }}
jobservice_db_index: {{ external_redis.jobservice_db_index }}

View File

@ -353,7 +353,11 @@ external_redis:
host: {{ external_redis.host }}
password: {{ external_redis.password }}
# sentinel_master_set must be set to support redis+sentinel
{% if external_redis.sentinel_master_set is defined %}
sentinel_master_set: {{ external_redis.sentinel_master_set }}
{% else %}
#sentinel_master_set:
{% endif %}
# db_index 0 is for core, it's unchangeable
registry_db_index: {{ external_redis.registry_db_index }}
jobservice_db_index: {{ external_redis.jobservice_db_index }}

View File

@ -353,7 +353,11 @@ external_redis:
host: {{ external_redis.host }}
password: {{ external_redis.password }}
# sentinel_master_set must be set to support redis+sentinel
{% if external_redis.sentinel_master_set is defined %}
sentinel_master_set: {{ external_redis.sentinel_master_set }}
{% else %}
#sentinel_master_set:
{% endif %}
# db_index 0 is for core, it's unchangeable
registry_db_index: {{ external_redis.registry_db_index }}
jobservice_db_index: {{ external_redis.jobservice_db_index }}

View File

@ -359,7 +359,11 @@ external_redis:
host: {{ external_redis.host }}
password: {{ external_redis.password }}
# sentinel_master_set must be set to support redis+sentinel
{% if external_redis.sentinel_master_set is defined %}
sentinel_master_set: {{ external_redis.sentinel_master_set }}
{% else %}
#sentinel_master_set:
{% endif %}
# db_index 0 is for core, it's unchangeable
registry_db_index: {{ external_redis.registry_db_index }}
jobservice_db_index: {{ external_redis.jobservice_db_index }}

View File

@ -373,7 +373,11 @@ external_redis:
host: {{ external_redis.host }}
password: {{ external_redis.password }}
# sentinel_master_set must be set to support redis+sentinel
{% if external_redis.sentinel_master_set is defined %}
sentinel_master_set: {{ external_redis.sentinel_master_set }}
{% else %}
#sentinel_master_set:
{% endif %}
# db_index 0 is for core, it's unchangeable
registry_db_index: {{ external_redis.registry_db_index }}
jobservice_db_index: {{ external_redis.jobservice_db_index }}

View File

@ -373,7 +373,11 @@ external_redis:
host: {{ external_redis.host }}
password: {{ external_redis.password }}
# sentinel_master_set must be set to support redis+sentinel
{% if external_redis.sentinel_master_set is defined %}
sentinel_master_set: {{ external_redis.sentinel_master_set }}
{% else %}
#sentinel_master_set:
{% endif %}
# db_index 0 is for core, it's unchangeable
registry_db_index: {{ external_redis.registry_db_index }}
jobservice_db_index: {{ external_redis.jobservice_db_index }}

View File

@ -380,7 +380,11 @@ external_redis:
host: {{ external_redis.host }}
password: {{ external_redis.password }}
# sentinel_master_set must be set to support redis+sentinel
{% if external_redis.sentinel_master_set is defined %}
sentinel_master_set: {{ external_redis.sentinel_master_set }}
{% else %}
#sentinel_master_set:
{% endif %}
# db_index 0 is for core, it's unchangeable
registry_db_index: {{ external_redis.registry_db_index }}
jobservice_db_index: {{ external_redis.jobservice_db_index }}

View File

@ -396,7 +396,11 @@ external_redis:
# username:
{% endif %}
# sentinel_master_set must be set to support redis+sentinel
{% if external_redis.sentinel_master_set is defined %}
sentinel_master_set: {{ external_redis.sentinel_master_set }}
{% else %}
#sentinel_master_set:
{% endif %}
# db_index 0 is for core, it's unchangeable
registry_db_index: {{ external_redis.registry_db_index }}
jobservice_db_index: {{ external_redis.jobservice_db_index }}