From cef4ce4f9f11338afd4846172a1f658467e9f47d Mon Sep 17 00:00:00 2001 From: hiroka-wada <47963288+wadda0714@users.noreply.github.com> Date: Fri, 27 Oct 2023 23:19:16 +0900 Subject: [PATCH] chore(config):Modification of AmazonLinux 1 maintenance deadline (#1776) --- config/os.go | 2 +- config/os_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/os.go b/config/os.go index c1be09c9..71684bec 100644 --- a/config/os.go +++ b/config/os.go @@ -40,7 +40,7 @@ func GetEOL(family, release string) (eol EOL, found bool) { switch family { case constant.Amazon: eol, found = map[string]EOL{ - "1": {StandardSupportUntil: time.Date(2023, 6, 30, 23, 59, 59, 0, time.UTC)}, + "1": {StandardSupportUntil: time.Date(2023, 12, 31, 23, 59, 59, 0, time.UTC)}, "2": {StandardSupportUntil: time.Date(2025, 6, 30, 23, 59, 59, 0, time.UTC)}, "2022": {StandardSupportUntil: time.Date(2026, 6, 30, 23, 59, 59, 0, time.UTC)}, "2023": {StandardSupportUntil: time.Date(2027, 6, 30, 23, 59, 59, 0, time.UTC)}, diff --git a/config/os_test.go b/config/os_test.go index dfeda010..af21a25e 100644 --- a/config/os_test.go +++ b/config/os_test.go @@ -30,9 +30,9 @@ func TestEOL_IsStandardSupportEnded(t *testing.T) { found: true, }, { - name: "amazon linux 1 eol on 2023-6-30", + name: "amazon linux 1 eol on 2023-12-31", fields: fields{family: Amazon, release: "2018.03"}, - now: time.Date(2023, 7, 1, 23, 59, 59, 0, time.UTC), + now: time.Date(2024, 1, 1, 23, 59, 59, 0, time.UTC), stdEnded: true, extEnded: true, found: true,