mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-21 17:55:30 +01:00
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:
parent
3af605eedc
commit
84a131773a
@ -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 }}
|
||||
|
@ -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 }}
|
||||
|
@ -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 }}
|
||||
|
@ -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 }}
|
||||
|
@ -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 }}
|
||||
|
@ -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 }}
|
||||
|
@ -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 }}
|
||||
|
@ -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 }}
|
||||
|
@ -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 }}
|
||||
|
Loading…
Reference in New Issue
Block a user