From 286042f75fe34f686aada3144c873b960a7021b2 Mon Sep 17 00:00:00 2001
From: Takuya Noguchi <takninnovationresearch@gmail.com>
Date: Wed, 3 Aug 2022 00:53:35 +0000
Subject: [PATCH] Add deprecation warning for Redis 5

Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
Co-authored-by: Achilleas Pipinellis <axil@gitlab.com>
Co-authored-by: DJ Mountney <dj@gitlab.com>

Changelog: deprecated
---
 data/deprecations/15-3-deprecate-redis-5.yml | 16 ++++++++++++++++
 doc/update/deprecations.md                   | 17 +++++++++++++++++
 2 files changed, 33 insertions(+)
 create mode 100644 data/deprecations/15-3-deprecate-redis-5.yml

diff --git a/data/deprecations/15-3-deprecate-redis-5.yml b/data/deprecations/15-3-deprecate-redis-5.yml
new file mode 100644
index 000000000000..f0e350cc62b2
--- /dev/null
+++ b/data/deprecations/15-3-deprecate-redis-5.yml
@@ -0,0 +1,16 @@
+- name: "Redis 5 deprecated"  # (required) The name of the feature to be deprecated
+  announcement_milestone: "15.3"  # (required) The milestone when this feature was first announced as deprecated.
+  announcement_date: "2022-08-22"  # (required) The date of the milestone release when this feature was first announced as deprecated. This should almost always be the 22nd of a month (YYYY-MM-22), unless you did an out of band blog post.
+  removal_milestone: "16.0"  # (required) The milestone when this feature is planned to be removed
+  removal_date: "2023-05-22" # (required) The date of the milestone release when this feature is planned to be removed. This should almost always be the 22nd of a month (YYYY-MM-22), unless you did an out of band blog post.
+  breaking_change: true  # (required) If this deprecation is a breaking change, set this value to true
+  reporter: tnir
+  stage: Enablement
+  issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/331468
+  body: |  # (required) Do not modify this line, instead modify the lines below.
+    With GitLab 13.9, in the Omnibus GitLab package and GitLab Helm chart 4.9, the Redis version [was updated to Redis 6](https://about.gitlab.com/releases/2021/02/22/gitlab-13-9-released/#omnibus-improvements).
+    Redis 5 has reached the end of life in April 2022 and will no longer be supported as of GitLab 15.6.
+    If you are using your own Redis 5.0 instance, you should upgrade it to Redis 6.0 or higher before upgrading to GitLab 16.0 or higher.
+  end_of_support_milestone: "15.6"
+  end_of_support_date: "2022-11-22"
+  documentation_url: https://docs.gitlab.com/ee/install/requirements.html
diff --git a/doc/update/deprecations.md b/doc/update/deprecations.md
index 40209e4f5e86..dcadddd28bbf 100644
--- a/doc/update/deprecations.md
+++ b/doc/update/deprecations.md
@@ -91,6 +91,23 @@ The [**Maximum number of active pipelines per project** limit](https://docs.gitl
 - [**Pipelines rate limits**](https://docs.gitlab.com/ee/user/admin_area/settings/rate_limit_on_pipelines_creation.html).
 - [**Total number of jobs in currently active pipelines**](https://docs.gitlab.com/ee/user/admin_area/settings/continuous_integration.html#set-cicd-limits).
 
+</div>
+
+<div class="deprecation removal-160 breaking-change">
+
+### Redis 5 deprecated
+
+End of Support: GitLab <span class="removal-milestone">15.6</span> (2022-11-22)
+Planned removal: GitLab <span class="removal-milestone">16.0</span> (2023-05-22)
+
+WARNING:
+This is a [breaking change](https://docs.gitlab.com/ee/development/deprecation_guidelines/).
+Review the details carefully before upgrading.
+
+With GitLab 13.9, in the Omnibus GitLab package and GitLab Helm chart 4.9, the Redis version [was updated to Redis 6](https://about.gitlab.com/releases/2021/02/22/gitlab-13-9-released/#omnibus-improvements).
+Redis 5 has reached the end of life in April 2022 and will no longer be supported as of GitLab 15.6.
+If you are using your own Redis 5.0 instance, you should upgrade it to Redis 6.0 or higher before upgrading to GitLab 16.0 or higher.
+
 </div>
 </div>
 
-- 
GitLab