Commit 48ee66ce authored by Dylan Griffith's avatar Dylan Griffith

Merge branch 'deprecate-support-for-es6' into 'master'

Document support for Elasticsearch 6.x is deprecated

See merge request gitlab-org/gitlab!45619
parents ea492e3a 97390c5c
---
title: Deprecate support for Elasticsearch 6.x
merge_request: 45619
author:
type: deprecated
......@@ -23,7 +23,9 @@ and the advantage of the following special searches:
| GitLab version | Elasticsearch version |
|---------------------------------------------|-------------------------------|
| GitLab Enterprise Edition 12.7 or greater | Elasticsearch 6.x through 7.x |
| GitLab Enterprise Edition 13.6 or greater | Elasticsearch 7.x (6.4 - 6.x deprecated to be removed in 13.8) |
| GitLab Enterprise Edition 13.2 through 13.5 | Elasticsearch 6.4 through 7.x |
| GitLab Enterprise Edition 12.7 through 13.2 | Elasticsearch 6.x through 7.x |
| GitLab Enterprise Edition 11.5 through 12.6 | Elasticsearch 5.6 through 6.x |
| GitLab Enterprise Edition 9.0 through 11.4 | Elasticsearch 5.1 through 5.5 |
| GitLab Enterprise Edition 8.4 through 8.17 | Elasticsearch 2.4 with [Delete By Query Plugin](https://www.elastic.co/guide/en/elasticsearch/plugins/2.4/plugins-delete-by-query.html) installed |
......
......@@ -3,7 +3,7 @@
module SystemCheck
module App
class ElasticsearchCheck < SystemCheck::BaseCheck
set_name 'Elasticsearch version 6.x - 7.x?'
set_name 'Elasticsearch version 7.x (6.4 - 6.x deprecated to be removed in 13.8)?'
set_skip_reason 'skipped (elasticsearch is disabled)'
set_check_pass -> { "yes (#{self.current_version})" }
set_check_fail -> { "no (#{self.current_version})" }
......@@ -22,7 +22,7 @@ module SystemCheck
def check?
case self.class.current_version.major
when 6
true
self.class.current_version.minor >= 4
when 7
true
else
......
......@@ -34,7 +34,8 @@ RSpec.describe SystemCheck::App::ElasticsearchCheck do
'5.3.1' | false
'5.6.0' | false
'5.6.6' | false
'6.0.0' | true
'6.0.0' | false
'6.3.0' | false
'6.4.2' | true
'7.1.0' | true
'7.5.1' | true
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment