Skip to content
Snippets Groups Projects
Commit e79ff41c authored by Balasankar "Balu" C's avatar Balasankar "Balu" C
Browse files

Add deprecation warning for Praefect failover_election_strategy to be triggered during upgrade

parent 59ac5320
No related branches found
No related tags found
2 merge requests!51Validate shift of Heptapod 0.25 to oldstable series,!41GitLab 13.12
...@@ -227,6 +227,14 @@ ...@@ -227,6 +227,14 @@
messages = [] messages = []
messages += deprecate_only_if_value(incoming_version, existing_config, type, ['gitlab', 'unicorn'], 'enable', true, '13.10', '14.0') messages += deprecate_only_if_value(incoming_version, existing_config, type, ['gitlab', 'unicorn'], 'enable', true, '13.10', '14.0')
praefect_note = <<~EOS
From GitLab 14.0 onwards, the `per_repository` will be the only available election strategy.
Migrate to repository-specific primary nodes following
https://docs.gitlab.com/ee/administration/gitaly/praefect.html#migrate-to-repository-specific-primary-gitaly-nodes.
EOS
messages += deprecate_only_if_value(incoming_version, existing_config, type, ['praefect'], 'failover_election_strategy', 'sql', '13.12', '14.0', note: praefect_note, ignore_deprecation: true)
messages += deprecate_only_if_value(incoming_version, existing_config, type, ['praefect'], 'failover_election_strategy', 'local', '13.12', '14.0', note: praefect_note, ignore_deprecation: true)
messages messages
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment