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,